mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
r10888: We've already checked 'CAN_WRITE' so we don't need to do it again.
Jeremy.
(This used to be commit 1c52bf875c
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
3ecf9119d5
commit
e950ef44c4
@ -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);
|
||||
|
Reference in New Issue
Block a user