svn commit: samba r12653 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Sun Jan 1 15:59:23 GMT 2006


Author: jra
Date: 2006-01-01 15:59:22 +0000 (Sun, 01 Jan 2006)
New Revision: 12653

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

Log:
Patch from SATOH Fumiyasu <fumiyas at miraclelinux.com>
for bug #3348. Don't assume owning sticky bit
directory means write access allowed.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/posix_acls.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/posix_acls.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/posix_acls.c	2006-01-01 15:58:50 UTC (rev 12652)
+++ branches/SAMBA_3_0/source/smbd/posix_acls.c	2006-01-01 15:59:22 UTC (rev 12653)
@@ -4149,8 +4149,13 @@
 		if(SMB_VFS_STAT(conn, fname, &sbuf_file) != 0) {
 			return False;
 		}
-		if (current_user.uid == sbuf_file.st_uid) {
-			return True;
+		/*
+		 * Patch from SATOH Fumiyasu <fumiyas at miraclelinux.com>
+		 * for bug #3348. Don't assume owning sticky bit
+		 * directory means write access allowed.
+		 */
+		if (current_user.uid != sbuf_file.st_uid) {
+			return False;
 		}
 		return False;
 	}



More information about the samba-cvs mailing list