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>
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)) {