summaryrefslogtreecommitdiffstats
path: root/source/smbd
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
commit1c52bf875cfdacb058aa6f54ab27b9f7e2d178dc (patch)
treed53188348a89d96ec921b23f4a427466b488dfc9 /source/smbd
parenta33f4f0d2afe28ca0e3ab6c9ecfcdbaa267a7fbe (diff)
downloadsamba-1c52bf875cfdacb058aa6f54ab27b9f7e2d178dc.tar.gz
samba-1c52bf875cfdacb058aa6f54ab27b9f7e2d178dc.tar.xz
samba-1c52bf875cfdacb058aa6f54ab27b9f7e2d178dc.zip
r10888: We've already checked 'CAN_WRITE' so we don't need to do it again.
Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/dosmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/dosmode.c b/source/smbd/dosmode.c
index 6aee6ba426c..efbd5f04cb9 100644
--- a/source/smbd/dosmode.c
+++ b/source/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);