svn commit: samba r12652 - in trunk/source/smbd: .
jra at samba.org
jra at samba.org
Sun Jan 1 15:58:50 GMT 2006
Author: jra
Date: 2006-01-01 15:58:50 +0000 (Sun, 01 Jan 2006)
New Revision: 12652
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12652
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:
trunk/source/smbd/posix_acls.c
Changeset:
Modified: trunk/source/smbd/posix_acls.c
===================================================================
--- trunk/source/smbd/posix_acls.c 2005-12-31 14:57:43 UTC (rev 12651)
+++ trunk/source/smbd/posix_acls.c 2006-01-01 15:58:50 UTC (rev 12652)
@@ -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