summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 12:06:51 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commit204d971d892e0aec8a5c0eb8b97b6a9675905bfe (patch)
tree3cbeedbd5fcfcc76583b8e3c9e07608c54856335 /source3
parent1675bf379c67f695c3826479f0d69109f82da3d4 (diff)
downloadsamba-204d971d892e0aec8a5c0eb8b97b6a9675905bfe.tar.gz
samba-204d971d892e0aec8a5c0eb8b97b6a9675905bfe.tar.bz2
samba-204d971d892e0aec8a5c0eb8b97b6a9675905bfe.zip
pysmbd: Convert set_nt_acl_conn to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/pysmbd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c
index 873feadb79..c1d3b4bc79 100644
--- a/source3/smbd/pysmbd.c
+++ b/source3/smbd/pysmbd.c
@@ -130,12 +130,11 @@ static NTSTATUS set_nt_acl_conn(const char *fname,
so set our umask to 0 */
saved_umask = umask(0);
- status = create_synthetic_smb_fname_split(fsp, fname, NULL,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname = synthetic_smb_fname_split(fsp, fname, NULL);
+ if (smb_fname == NULL) {
TALLOC_FREE(frame);
umask(saved_umask);
- return status;
+ return NT_STATUS_NO_MEMORY;
}
fsp->fsp_name = smb_fname;