diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-15 11:05:20 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:01 -0700 |
commit | 01b8f34e49e4d95935b6c520cbd833b34c6ce792 (patch) | |
tree | e4d739ad6860571735ae5fc27bae472c6bfee9a1 | |
parent | e3a7f707686973af04afd1022820a4aabdae95ac (diff) | |
download | samba-01b8f34e49e4d95935b6c520cbd833b34c6ce792.tar.gz samba-01b8f34e49e4d95935b6c520cbd833b34c6ce792.tar.bz2 samba-01b8f34e49e4d95935b6c520cbd833b34c6ce792.zip |
smbd: Convert can_delete_file_in_directory to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/smbd/file_access.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/smbd/file_access.c b/source3/smbd/file_access.c index f4a7bb3d45..cead1e4301 100644 --- a/source3/smbd/file_access.c +++ b/source3/smbd/file_access.c @@ -37,8 +37,7 @@ bool can_delete_file_in_directory(connection_struct *conn, { TALLOC_CTX *ctx = talloc_tos(); char *dname = NULL; - struct smb_filename *smb_fname_parent = NULL; - NTSTATUS status; + struct smb_filename *smb_fname_parent; bool ret; if (!CAN_WRITE(conn)) { @@ -55,9 +54,8 @@ bool can_delete_file_in_directory(connection_struct *conn, return False; } - status = create_synthetic_smb_fname(ctx, dname, NULL, NULL, - &smb_fname_parent); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_parent = synthetic_smb_fname(ctx, dname, NULL, NULL); + if (smb_fname_parent == NULL) { ret = false; goto out; } |