mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3: smbd: Use SMB_VFS_FNTIMES() instead of SMB_VFS_NTIMES()
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
1196903231
commit
0a13237db9
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user