svn commit: samba r3823 - in branches/SAMBA_3_0/source/smbd: .
jra at samba.org
jra at samba.org
Wed Nov 17 21:05:47 GMT 2004
Author: jra
Date: 2004-11-17 21:05:47 +0000 (Wed, 17 Nov 2004)
New Revision: 3823
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3823
Log:
Fix bug reported by Tom Dickson <tdickson at inostor.com> with
follow symlinks = no reporting an incorrect error when it should
be access denied.
Jeremy.
Modified:
branches/SAMBA_3_0/source/smbd/vfs.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/vfs.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/vfs.c 2004-11-17 21:05:45 UTC (rev 3822)
+++ branches/SAMBA_3_0/source/smbd/vfs.c 2004-11-17 21:05:47 UTC (rev 3823)
@@ -897,7 +897,8 @@
}
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;
}
}
More information about the samba-cvs
mailing list