From 2e5e49e41dc9c4f134db7c98c244237ea3c403cf Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 15 Oct 2020 19:45:21 +0200 Subject: [PATCH] smbd: let directory entries inherit the smb_fname->flags from the directory If the listed directory has SMB_FILENAME_POSIX_PATH set, this change causes the smb_fname of directory entries to inherit the flag so subsequent operations on the directory entry can correctly implement POSIX semantics. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 0001726e582..6b5b4715d54 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -872,6 +872,7 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, .base_name = pathreal, .st = sbuf, .twrp = dirptr->smb_dname->twrp, + .flags = dirptr->smb_dname->flags, }; ok = mode_fn(ctx, private_data, &smb_fname, get_dosmode, &mode); -- 2.47.3