1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

smbd: Convert recursive_rmdir 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:27:35 +02:00 committed by Jeremy Allison
parent 39470c8056
commit f5873c987c

View File

@ -903,7 +903,6 @@ bool recursive_rmdir(TALLOC_CTX *ctx,
struct smb_filename *smb_dname_full = NULL;
char *fullname = NULL;
bool do_break = true;
NTSTATUS status;
if (ISDOT(dname) || ISDOTDOT(dname)) {
TALLOC_FREE(talloced);
@ -926,10 +925,10 @@ bool recursive_rmdir(TALLOC_CTX *ctx,
goto err_break;
}
status = create_synthetic_smb_fname(talloc_tos(), fullname,
NULL, NULL,
&smb_dname_full);
if (!NT_STATUS_IS_OK(status)) {
smb_dname_full = synthetic_smb_fname(talloc_tos(), fullname,
NULL, NULL);
if (smb_dname_full == NULL) {
errno = ENOMEM;
goto err_break;
}