mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
s3: smbd: file_ntimes(), can_write_to_file() -> can_write_to_fsp().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
fad211a706
commit
868457d777
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user