]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Allow a symlink as lcomp when asking for REPARSE_POINT
authorVolker Lendecke <vl@samba.org>
Wed, 20 Nov 2024 11:02:54 +0000 (12:02 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 22 Nov 2024 09:50:37 +0000 (09:50 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c

index ace39003021ecf4d5100d309961bfc4ce74f79e8..b9bdda3ae0da8abe8d6f073ea861c367b59ecdd8 100644 (file)
@@ -77,6 +77,10 @@ uint32_t filename_create_ucf_flags(struct smb_request *req,
                break;
        }
 
+       if (create_options & FILE_OPEN_REPARSE_POINT) {
+               ucf_flags |= UCF_LCOMP_LNK_OK;
+       }
+
        return ucf_flags;
 }