From: Jeremy Allison Date: Wed, 2 Jun 2021 18:40:21 +0000 (-0700) Subject: s3: smbd: call_nt_transact_create(), can_write_to_file() -> can_write_to_fsp(). X-Git-Tag: tevent-0.11.0~589 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66dd861245e2bf171322d7af9aa8d4d1c6a69fb8;p=thirdparty%2Fsamba.git s3: smbd: call_nt_transact_create(), can_write_to_file() -> can_write_to_fsp(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 1c7cc1518f5..9f4a53926cc 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1502,9 +1502,7 @@ static void call_nt_transact_create(connection_struct *conn, p += 25; if (fsp->fsp_flags.is_directory || fsp->fsp_flags.can_write || - can_write_to_file(conn, - conn->cwd_fsp, - smb_fname)) + can_write_to_fsp(fsp)) { perms = FILE_GENERIC_ALL; } else {