]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: file_ntimes(), can_write_to_file() -> can_write_to_fsp().
authorJeremy Allison <jra@samba.org>
Wed, 2 Jun 2021 19:12:26 +0000 (12:12 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dosmode.c

index dcb5bec411948f6510fa663eb75cd9f946a52226..01b2b4acfe7ea50fd1eff50b3dc0ff57d8b86191 100644 (file)
@@ -1249,10 +1249,7 @@ int file_ntimes(connection_struct *conn,
         */
 
        /* Check if we have write access. */
-       if (can_write_to_file(conn,
-                             conn->cwd_fsp,
-                             fsp->fsp_name))
-       {
+       if (can_write_to_fsp(fsp)) {
                /* We are allowed to become root and change the filetime. */
                become_root();
                ret = SMB_VFS_FNTIMES(fsp, ft);