]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Get the symlink mode for posix through fdos_mode()
authorVolker Lendecke <vl@samba.org>
Tue, 14 Nov 2023 11:12:22 +0000 (12:12 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 15 Nov 2023 06:10:38 +0000 (06:10 +0000)
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

source3/smbd/dir.c

index 0fe38d2a650366b4823e1e812fd4164bdcd05634..d9e10b919d3fecdd4a251be1d38e8ecb1559cbda 100644 (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;
                }