From d003f2ff8064c5655e13a523e7b2b93b2f56cf60 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:12:40 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 78b824541ae..cbbd4e3d2fd 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -441,17 +441,17 @@ NTSTATUS change_dir_owner_to_parent(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf) { - struct smb_filename *smb_fname_parent = NULL; + struct smb_filename *smb_fname_parent; struct smb_filename *smb_fname_cwd = NULL; char *saved_dir = NULL; TALLOC_CTX *ctx = talloc_tos(); NTSTATUS status = NT_STATUS_OK; int ret; - status = create_synthetic_smb_fname(ctx, inherit_from_dir, NULL, NULL, - &smb_fname_parent); - if (!NT_STATUS_IS_OK(status)) { - return status; + smb_fname_parent = synthetic_smb_fname(ctx, inherit_from_dir, + NULL, NULL); + if (smb_fname_parent == NULL) { + return NT_STATUS_NO_MEMORY; } ret = SMB_VFS_STAT(conn, smb_fname_parent); -- 2.11.4.GIT