svn commit: samba r3822 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Wed Nov 17 21:05:46 GMT 2004


Author: jra
Date: 2004-11-17 21:05:45 +0000 (Wed, 17 Nov 2004)
New Revision: 3822

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3822

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:
   trunk/source/smbd/vfs.c


Changeset:
Modified: trunk/source/smbd/vfs.c
===================================================================
--- trunk/source/smbd/vfs.c	2004-11-17 20:56:26 UTC (rev 3821)
+++ trunk/source/smbd/vfs.c	2004-11-17 21:05:45 UTC (rev 3822)
@@ -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