git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15b61c6
)
r3823: Fix bug reported by Tom Dickson <tdickson@inostor.com> with
author
Jeremy Allison
<jra@samba.org>
Wed, 17 Nov 2004 21:05:47 +0000
(21:05 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:53:19 +0000
(10:53 -0500)
follow symlinks = no reporting an incorrect error when it should
be access denied.
Jeremy.
(This used to be commit
5a103f4abff0503740822c8ed75d9102ee51e8f0
)
source3/smbd/vfs.c
patch
|
blob
|
history
diff --git
a/source3/smbd/vfs.c
b/source3/smbd/vfs.c
index f30a5559006864b2fb92f8b6889114992c2a4649..10599c50a1209efc4557580703bd26f779b6df33 100644
(file)
--- 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;
}
}