r10888: We've already checked 'CAN_WRITE' so we don't need to do it again.
authorJeremy Allison <jra@samba.org>
Tue, 11 Oct 2005 04:28:46 +0000 (04:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:04:55 +0000 (11:04 -0500)
Jeremy.

source/smbd/dosmode.c

index 6aee6ba426c597b0639ff401b58126da299e07e4..efbd5f04cb957103f8a3428de5b1af4b945496dd 100644 (file)
@@ -479,7 +479,7 @@ int file_utime(connection_struct *conn, const char *fname, struct utimbuf *times
         */
 
        /* 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);