summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-18 02:27:23 +0000
committerJeremy Allison <jra@samba.org>2001-04-18 02:27:23 +0000
commita5bd9ef712786a51089f15e034a32111bc416344 (patch)
tree41439ccbef2a1d5a22ca4ecddf7589e9ab404de3 /source3/smbd
parent82afede9fa4729ed91e583b4432508f3c887cfdf (diff)
downloadsamba-a5bd9ef712786a51089f15e034a32111bc416344.tar.gz
samba-a5bd9ef712786a51089f15e034a32111bc416344.tar.bz2
samba-a5bd9ef712786a51089f15e034a32111bc416344.zip
Rememver to use VFS at all times... even in new user_can_read_file code :-).
Jeremy. (This used to be commit 0d10113d01d6d15f470359259a76e4f107a06c73)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 46078b8d06..1d497574a6 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -669,12 +669,12 @@ check to see if a user can read a file. This is only approximate,
it is used as part of the "hide unreadable" option. Don't
use it for anything security sensitive
********************************************************************/
-static BOOL user_can_read_file(connection_struct *conn, const char *name)
+static BOOL user_can_read_file(connection_struct *conn, char *name)
{
- struct stat ste;
+ SMB_STRUCT_STAT ste;
/* if we can't stat it does not show it */
- if (stat(name, &ste) != 0) return False;
+ if (vfs_stat(conn, name, &ste) != 0) return False;
if (ste.st_uid == conn->uid) {
return (ste.st_mode & S_IRUSR) == S_IRUSR;