From: Ralph Boehme Date: Thu, 15 Oct 2020 17:45:21 +0000 (+0200) Subject: smbd: let directory entries inherit the smb_fname->flags from the directory X-Git-Tag: talloc-2.3.2~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e5e49e41dc9c4f134db7c98c244237ea3c403cf;p=thirdparty%2Fsamba.git 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 --- 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);