summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:21:09 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:01 -0700
commit39c5a77b0a03916477309332913cd5a346c46472 (patch)
tree0d1467e96cf4e8d0a9e5c08c39339ebf568c67da /source3/smbd/open.c
parentd003f2ff8064c5655e13a523e7b2b93b2f56cf60 (diff)
downloadsamba-39c5a77b0a03916477309332913cd5a346c46472.tar.gz
samba-39c5a77b0a03916477309332913cd5a346c46472.tar.bz2
samba-39c5a77b0a03916477309332913cd5a346c46472.zip
smbd: Convert change_dir_owner_to_parent to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index cbbd4e3d2f..2587d0966f 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;
}