From 8eb561688e1ec62a809dc695c0a22179b3c7defd Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 19 Oct 2020 21:08:29 +0200 Subject: [PATCH] smbd: use fdos_mode() in smb_set_file_dosmode() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.47.3