From 39c5a77b0a03916477309332913cd5a346c46472 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:21:09 +0200 Subject: [PATCH] smbd: Convert change_dir_owner_to_parent to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index cbbd4e3d2fd..2587d0966f8 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -489,9 +489,9 @@ NTSTATUS change_dir_owner_to_parent(connection_struct *conn, goto chdir; } - status = create_synthetic_smb_fname(ctx, ".", NULL, NULL, - &smb_fname_cwd); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_cwd = synthetic_smb_fname(ctx, ".", NULL, NULL); + if (smb_fname_cwd == NULL) { + status = NT_STATUS_NO_MEMORY; goto chdir; } -- 2.11.4.GIT