From: Volker Lendecke Date: Tue, 14 Nov 2023 11:12:22 +0000 (+0100) Subject: smbd: Get the symlink mode for posix through fdos_mode() X-Git-Tag: talloc-2.4.2~721 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e585186f2b4905ab4504a464766b3fda1875cb3;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Wed Nov 15 06:10:38 UTC 2023 on atb-devel-224 --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 0fe38d2a650..d9e10b919d3 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -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; }