]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In call_trans2findfirst() we don't need filename_convert_with_privilege...
authorJeremy Allison <jra@samba.org>
Fri, 3 Dec 2021 01:51:42 +0000 (17:51 -0800)
committerRalph Boehme <slow@samba.org>
Sat, 11 Dec 2021 07:17:28 +0000 (07:17 +0000)
It was extra-paranoid code now not needed as the new VFS
version of filename_convert() does the same job.

There are now no remaining callers of filename_convert_with_privilege().

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

index 55857dd91192f3390f82146cf332d8e857effa2b..5aabe244d45d68dec7296525f1893fe45253deb7 100644 (file)
@@ -2757,19 +2757,12 @@ close_if_end = %d requires_resume_key = %d backup_priv = %d level = 0x%x, max_da
        if (backup_priv) {
                become_root();
                as_root = true;
-               ntstatus = filename_convert_with_privilege(talloc_tos(),
-                               conn,
-                               req,
-                               directory,
-                               ucf_flags,
-                               &smb_dname);
-       } else {
-               ntstatus = filename_convert(talloc_tos(), conn,
+       }
+       ntstatus = filename_convert(talloc_tos(), conn,
                                    directory,
                                    ucf_flags,
                                    0,
                                    &smb_dname);
-       }
 
        if (!NT_STATUS_IS_OK(ntstatus)) {
                if (NT_STATUS_EQUAL(ntstatus,NT_STATUS_PATH_NOT_COVERED)) {