summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-10-11 04:28:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:04:55 -0500
commite950ef44c48b7a12247e0000f292ec50e466dfd3 (patch)
tree3629169dd06f8dddab647da62e04cd5e2d076337
parent3ecf9119d5055b0706c485eeba8df1bd898de4ee (diff)
downloadsamba-e950ef44c48b7a12247e0000f292ec50e466dfd3.tar.gz
samba-e950ef44c48b7a12247e0000f292ec50e466dfd3.tar.bz2
samba-e950ef44c48b7a12247e0000f292ec50e466dfd3.zip
r10888: We've already checked 'CAN_WRITE' so we don't need to do it again.
Jeremy. (This used to be commit 1c52bf875cfdacb058aa6f54ab27b9f7e2d178dc)
-rw-r--r--source3/smbd/dosmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 6aee6ba426..efbd5f04cb 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -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);