]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Use SMB_VFS_FNTIMES() instead of SMB_VFS_NTIMES()
authorSamuel Cabrero <scabrero@samba.org>
Tue, 13 Apr 2021 15:13:39 +0000 (17:13 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Mon, 19 Apr 2021 12:28:30 +0000 (12:28 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dosmode.c

index d831aa8d60f7874a297b69dc6e8af57694a035be..d5bb9e1fd41578cb6e02b09be1d7e7561792b131 100644 (file)
@@ -1231,7 +1231,7 @@ int file_ntimes(connection_struct *conn,
                return 0;
        }
 
-       if (SMB_VFS_NTIMES(conn, fsp->fsp_name, ft) == 0) {
+       if (SMB_VFS_FNTIMES(fsp, ft) == 0) {
                return 0;
        }
 
@@ -1256,7 +1256,7 @@ int file_ntimes(connection_struct *conn,
        {
                /* We are allowed to become root and change the filetime. */
                become_root();
-               ret = SMB_VFS_NTIMES(conn, fsp->fsp_name, ft);
+               ret = SMB_VFS_FNTIMES(fsp, ft);
                unbecome_root();
        }