]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In filename_convert_dirfsp_nosymlink() only use synthetic_smb_fname_split...
authorJeremy Allison <jra@samba.org>
Wed, 3 Aug 2022 01:13:52 +0000 (18:13 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 4 Aug 2022 17:09:31 +0000 (17:09 +0000)
Printer shares can have real filenames.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/filename.c

index c32990bb2e447d376a7fb6b5390c2174aee69a0f..e378bb72b3243a551376a11bd2405328b69484c5 100644 (file)
@@ -2470,7 +2470,7 @@ static NTSTATUS filename_convert_dirfsp_nosymlink(
                }
        }
 
-       if (is_fake_file_path(name_in) || conn->printer) {
+       if (is_fake_file_path(name_in)) {
                smb_fname = synthetic_smb_fname_split(mem_ctx, name_in, posix);
                if (smb_fname == NULL) {
                        return NT_STATUS_NO_MEMORY;