1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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>
This commit is contained in:
Volker Lendecke 2013-04-15 11:11:43 +02:00 committed by Jeremy Allison
parent 81e9c0102d
commit c9a220bdaf

View File

@ -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;
}