From bde53d8c5b6c6cee51f18bf50a1cdbe01e2e99cc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:44:38 +0200 Subject: [PATCH] smbd: Convert check_reduced_name_with_privilege to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/vfs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 761470c4546..edc10a4f970 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1016,10 +1016,9 @@ NTSTATUS check_reduced_name_with_privilege(connection_struct *conn, resolved_name)); /* Now check the stat value is the same. */ - status = create_synthetic_smb_fname(talloc_tos(), ".", - NULL, NULL, - &smb_fname_cwd); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_cwd = synthetic_smb_fname(talloc_tos(), ".", NULL, NULL); + if (smb_fname_cwd == NULL) { + status = NT_STATUS_NO_MEMORY; goto err; } -- 2.11.4.GIT