From: Ralph Boehme Date: Mon, 19 Oct 2020 19:08:29 +0000 (+0200) Subject: smbd: use fdos_mode() in smb_set_file_dosmode() X-Git-Tag: samba-4.14.0rc1~269 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8eb561688e1ec62a809dc695c0a22179b3c7defd;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in smb_set_file_dosmode() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 64b8f1711e1..41f991e4e3a 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -6665,7 +6665,7 @@ static NTSTATUS smb_set_file_dosmode(connection_struct *conn, DEBUG(6,("smb_set_file_dosmode: dosmode: 0x%x\n", (unsigned int)dosmode)); /* check the mode isn't different, before changing it */ - if ((dosmode != 0) && (dosmode != dos_mode(conn, smb_fname_base))) { + if ((dosmode != 0) && (dosmode != fdos_mode(fsp))) { DEBUG(10,("smb_set_file_dosmode: file %s : setting dos mode " "0x%x\n", smb_fname_str_dbg(smb_fname_base), (unsigned int)dosmode));