1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

smbd: Convert rmdir_internals to synthetic_smb_fname

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2013-04-15 11:28:47 +02:00 committed by Jeremy Allison
parent f5873c987c
commit af40d236ea

View File

@ -1056,7 +1056,6 @@ static NTSTATUS rmdir_internals(TALLOC_CTX *ctx, files_struct *fsp)
struct smb_filename *smb_dname_full = NULL; struct smb_filename *smb_dname_full = NULL;
char *fullname = NULL; char *fullname = NULL;
bool do_break = true; bool do_break = true;
NTSTATUS status;
if (ISDOT(dname) || ISDOTDOT(dname)) { if (ISDOT(dname) || ISDOTDOT(dname)) {
TALLOC_FREE(talloced); TALLOC_FREE(talloced);
@ -1078,12 +1077,10 @@ static NTSTATUS rmdir_internals(TALLOC_CTX *ctx, files_struct *fsp)
goto err_break; goto err_break;
} }
status = create_synthetic_smb_fname(talloc_tos(), smb_dname_full = synthetic_smb_fname(
fullname, NULL, talloc_tos(), fullname, NULL, NULL);
NULL, if (smb_dname_full == NULL) {
&smb_dname_full); errno = ENOMEM;
if (!NT_STATUS_IS_OK(status)) {
errno = map_errno_from_nt_status(status);
goto err_break; goto err_break;
} }