1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

smbd: Get the symlink mode for posix through fdos_mode()

fdos_mode() has special code to deal with symlinks, so we don't have
to replicate that logic here.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Nov 15 06:10:38 UTC 2023 on atb-devel-224
This commit is contained in:
Volker Lendecke 2023-11-14 12:12:22 +01:00
parent aaa73cce1d
commit 4e585186f2

View File

@ -653,8 +653,6 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
* smb_fname->fsp just in case it's not
* dangling.
*/
mode = FILE_ATTRIBUTE_NORMAL;
get_dosmode = false;
ask_sharemode = false;
goto done;
}