From e950ef44c48b7a12247e0000f292ec50e466dfd3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 11 Oct 2005 04:28:46 +0000 Subject: r10888: We've already checked 'CAN_WRITE' so we don't need to do it again. Jeremy. (This used to be commit 1c52bf875cfdacb058aa6f54ab27b9f7e2d178dc) --- source3/smbd/dosmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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); -- cgit