]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: base POSIX semantics of call_trans2findfirst() on SMB_FILENAME_POSIX_PATH flag
authorRalph Boehme <slow@samba.org>
Thu, 15 Oct 2020 17:50:14 +0000 (19:50 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 23 Oct 2020 07:56:33 +0000 (07:56 +0000)
We really want to apply POSIX semantics in this place whenever the client has
enabled UNIX extensions, not only when using UNIX find info-levels.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c

index c39d21da909d06c11de8eeedb87925f7284f4491..5a9ec8a467ec633c1b2522110b5a1ba246a7cb54 100644 (file)
@@ -1784,7 +1784,7 @@ static bool smbd_dirptr_lanman2_mode_fn(TALLOC_CTX *ctx,
        bool ms_dfs_link = false;
        uint32_t mode = 0;
 
-       if (INFO_LEVEL_IS_UNIX(state->info_level)) {
+       if (smb_fname->flags & SMB_FILENAME_POSIX_PATH) {
                if (SMB_VFS_LSTAT(state->conn, smb_fname) != 0) {
                        DEBUG(5,("smbd_dirptr_lanman2_mode_fn: "
                                 "Couldn't lstat [%s] (%s)\n",