summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:12:40 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:01 -0700
commitd003f2ff8064c5655e13a523e7b2b93b2f56cf60 (patch)
tree66f478031846ff364a5a34a71078c054455a2dec
parentc9a220bdaf963fa8a4ede9a3b9eb52b6c10d718e (diff)
downloadsamba-d003f2ff8064c5655e13a523e7b2b93b2f56cf60.tar.gz
samba-d003f2ff8064c5655e13a523e7b2b93b2f56cf60.tar.bz2
samba-d003f2ff8064c5655e13a523e7b2b93b2f56cf60.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>
-rw-r--r--source3/smbd/open.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 78b824541a..cbbd4e3d2f 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);