summaryrefslogtreecommitdiffstats
path: root/source/smbd/vfs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-04-07 18:27:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:31 -0500
commitdbf021a2e04e74dd7f072c927a34043fd8c3ae30 (patch)
treeaa4e8c278bb2c9710057ece8590d8485a430a544 /source/smbd/vfs.c
parent28d433351cf813c7fb57ebac0e0f4973c85f73e8 (diff)
downloadsamba-dbf021a2e04e74dd7f072c927a34043fd8c3ae30.tar.gz
samba-dbf021a2e04e74dd7f072c927a34043fd8c3ae30.tar.xz
samba-dbf021a2e04e74dd7f072c927a34043fd8c3ae30.zip
r6234: Fix for possible root squash nfs bugs from psz@maths.usyd.edu.au
Jeremy.
Diffstat (limited to 'source/smbd/vfs.c')
-rw-r--r--source/smbd/vfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c
index 34671b8efc6..28441c91abc 100644
--- a/source/smbd/vfs.c
+++ b/source/smbd/vfs.c
@@ -731,7 +731,9 @@ char *vfs_GetWd(connection_struct *conn, char *path)
in trouble :-) */
if (SMB_VFS_STAT(conn, ".",&st) == -1) {
- DEBUG(0,("Very strange, couldn't stat \".\" path=%s\n", path));
+ /* Known to fail for root: the directory may be
+ * NFS-mounted and exported with root_squash (so has no root access). */
+ DEBUG(1,("vfs_GetWd: couldn't stat \".\" path=%s error %s (NFS problem ?)\n", path, strerror(errno) ));
return(SMB_VFS_GETWD(conn,path));
}