summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:11:43 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:01 -0700
commitc9a220bdaf963fa8a4ede9a3b9eb52b6c10d718e (patch)
tree11a1c0a79db1a028cac7a21f98a5fdf8144d7d9d
parent81e9c0102d1aae9b794addd7e35f9a888d5d66a2 (diff)
downloadsamba-c9a220bdaf963fa8a4ede9a3b9eb52b6c10d718e.tar.gz
samba-c9a220bdaf963fa8a4ede9a3b9eb52b6c10d718e.tar.bz2
samba-c9a220bdaf963fa8a4ede9a3b9eb52b6c10d718e.zip
smbd: Convert change_file_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.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 1086e806fb..78b824541a 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -387,13 +387,12 @@ void change_file_owner_to_parent(connection_struct *conn,
const char *inherit_from_dir,
files_struct *fsp)
{
- struct smb_filename *smb_fname_parent = NULL;
- NTSTATUS status;
+ struct smb_filename *smb_fname_parent;
int ret;
- status = create_synthetic_smb_fname(talloc_tos(), inherit_from_dir,
- NULL, NULL, &smb_fname_parent);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname_parent = synthetic_smb_fname(talloc_tos(), inherit_from_dir,
+ NULL, NULL);
+ if (smb_fname_parent == NULL) {
return;
}