From: Jeremy Allison Date: Wed, 2 Jun 2021 19:12:26 +0000 (-0700) Subject: s3: smbd: file_ntimes(), can_write_to_file() -> can_write_to_fsp(). X-Git-Tag: tevent-0.11.0~584 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=868457d7779361d05ffd0cef120863f512accbe2;p=thirdparty%2Fsamba.git s3: smbd: file_ntimes(), can_write_to_file() -> can_write_to_fsp(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index dcb5bec4119..01b2b4acfe7 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -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);