summaryrefslogtreecommitdiff
path: root/source3/smbd/vfs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-11-17 21:05:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:19 -0500
commit00f6baa15ae29e04f8d298dd5bbb81719cc912a7 (patch)
tree831cd6651e37b076655558665867a1f3c2df9859 /source3/smbd/vfs.c
parent15b61c6d185f7e92c6ad2d38e23b8a328934adcf (diff)
downloadsamba-00f6baa15ae29e04f8d298dd5bbb81719cc912a7.tar.gz
samba-00f6baa15ae29e04f8d298dd5bbb81719cc912a7.tar.bz2
samba-00f6baa15ae29e04f8d298dd5bbb81719cc912a7.zip
r3823: Fix bug reported by Tom Dickson <tdickson@inostor.com> with
follow symlinks = no reporting an incorrect error when it should be access denied. Jeremy. (This used to be commit 5a103f4abff0503740822c8ed75d9102ee51e8f0)
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r--source3/smbd/vfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index f30a555900..10599c50a1 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -897,7 +897,8 @@ BOOL reduce_name(connection_struct *conn, const pstring fname)
}
default:
DEBUG(1,("reduce_name: couldn't get realpath for %s\n", fname));
- errno = saved_errno;
+ /* Don't restore the saved errno. We need to return the error that
+ realpath caused here as it was not one of the cases we handle. JRA. */
return False;
}
}