From: Ralph Boehme Date: Tue, 25 May 2021 15:17:17 +0000 (+0200) Subject: smbd: pass fsp to canonicalize_inheritance_bits() X-Git-Tag: tevent-0.11.0~737 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86e0901392008b5d76e2cb5230609809e752d658;p=thirdparty%2Fsamba.git smbd: pass fsp to canonicalize_inheritance_bits() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index ab9b2f06b4f..50e0a5f2f01 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -947,7 +947,8 @@ static void do_nt_transact_create_pipe(connection_struct *conn, same. *********************************************************************/ -static void canonicalize_inheritance_bits(struct security_descriptor *psd) +static void canonicalize_inheritance_bits(struct files_struct *fsp, + struct security_descriptor *psd) { bool set_auto_inherited = false; @@ -1052,7 +1053,7 @@ NTSTATUS set_sd(files_struct *fsp, struct security_descriptor *psd, } } - canonicalize_inheritance_bits(psd); + canonicalize_inheritance_bits(fsp, psd); if (DEBUGLEVEL >= 10) { DEBUG(10,("set_sd for file %s\n", fsp_str_dbg(fsp)));