From a5bd9ef712786a51089f15e034a32111bc416344 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 18 Apr 2001 02:27:23 +0000 Subject: Rememver to use VFS at all times... even in new user_can_read_file code :-). Jeremy. (This used to be commit 0d10113d01d6d15f470359259a76e4f107a06c73) --- source3/smbd/dir.c | 6 +++--- 1 file 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; -- cgit