svn commit: samba r10888 - in branches/SAMBA_3_0/source/smbd: .
jra at samba.org
jra at samba.org
Tue Oct 11 04:28:47 GMT 2005
Author: jra
Date: 2005-10-11 04:28:46 +0000 (Tue, 11 Oct 2005)
New Revision: 10888
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10888
Log:
We've already checked 'CAN_WRITE' so we don't need to do it again.
Jeremy.
Modified:
branches/SAMBA_3_0/source/smbd/dosmode.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/dosmode.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/dosmode.c 2005-10-11 04:28:29 UTC (rev 10887)
+++ branches/SAMBA_3_0/source/smbd/dosmode.c 2005-10-11 04:28:46 UTC (rev 10888)
@@ -479,7 +479,7 @@
*/
/* Check if we have write access. */
- if (CAN_WRITE(conn) && can_write_to_file(conn, fname, &sbuf)) {
+ if (can_write_to_file(conn, fname, &sbuf)) {
/* We are allowed to become root and change the filetime. */
become_root();
ret = SMB_VFS_UTIME(conn,fname, times);
More information about the samba-cvs
mailing list