mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +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. */
|
/* 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. */
|
/* We are allowed to become root and change the filetime. */
|
||||||
become_root();
|
become_root();
|
||||||
ret = SMB_VFS_UTIME(conn,fname, times);
|
ret = SMB_VFS_UTIME(conn,fname, times);
|
||||||
|
Reference in New Issue
Block a user