summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_afsacl.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 10:55:54 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:57 -0700
commit855ca77f8247b2ee028b3d26a1f1f917204f882f (patch)
tree8423902b1407bf6efeb6a498f1f08be09d216d9f /source3/modules/vfs_afsacl.c
parent766f04cebd08d5b7056171945a79b7a8cb4de198 (diff)
downloadsamba-855ca77f8247b2ee028b3d26a1f1f917204f882f.tar.gz
vfs: Convert afsacl_get_nt_acl to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules/vfs_afsacl.c')
-rw-r--r--source3/modules/vfs_afsacl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c
index 66e256ce263..b03d06d1479 100644
--- a/source3/modules/vfs_afsacl.c
+++ b/source3/modules/vfs_afsacl.c
@@ -1050,11 +1050,10 @@ static NTSTATUS afsacl_get_nt_acl(struct vfs_handle_struct *handle,
return NT_STATUS_ACCESS_DENIED;
}
- status = create_synthetic_smb_fname(talloc_tos(), name, NULL, NULL,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname = synthetic_smb_fname(talloc_tos(), name, NULL, NULL);
+ if (smb_fname == NULL) {
free_afs_acl(&acl);
- return status;
+ return NT_STATUS_NO_MEMORY;
}
sd_size = afs_to_nt_acl(&acl, handle->conn, smb_fname, security_info,