Author: jra
Date: 2005-10-11 04:28:29 +0000 (Tue, 11 Oct 2005)
New Revision: 10887

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

Log:
We've already checked 'CAN_WRITE' so we don't need to do it again.
Jeremy.

Modified:
   trunk/source/smbd/dosmode.c


Changeset:
Modified: trunk/source/smbd/dosmode.c
===================================================================
--- trunk/source/smbd/dosmode.c 2005-10-11 04:26:09 UTC (rev 10886)
+++ trunk/source/smbd/dosmode.c 2005-10-11 04:28:29 UTC (rev 10887)
@@ -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);

Reply via email to