From: Jeremy Allison Date: Wed, 2 Jun 2021 19:01:17 +0000 (-0700) Subject: s3: smbd: file_set_dosmode(), can_write_to_file() -> can_write_to_fsp(). X-Git-Tag: tevent-0.11.0~585 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fad211a7068a5afe5e8fa9e1a0c4ab51ef0ac5d9;p=thirdparty%2Fsamba.git s3: smbd: file_set_dosmode(), 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 92dd60c089e..dcb5bec4119 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -1074,9 +1074,7 @@ int file_set_dosmode(connection_struct *conn, bits on a file. Just like file_ntimes below. */ - if (!can_write_to_file(conn, - conn->cwd_fsp, - smb_fname)) + if (!can_write_to_fsp(smb_fname->fsp)) { errno = EACCES; return -1;