summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:49:54 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:03 -0700
commit2b97eb13ff7d97ddd7a4400a8073ea7b00119103 (patch)
tree52e031540478f71706693048d9d2cccb9a1cbf1b /source3
parent6f7d9b24d0bf8265c007c2c9745acdabd2e41990 (diff)
downloadsamba-2b97eb13ff7d97ddd7a4400a8073ea7b00119103.tar.gz
samba-2b97eb13ff7d97ddd7a4400a8073ea7b00119103.tar.bz2
samba-2b97eb13ff7d97ddd7a4400a8073ea7b00119103.zip
vfstest: Convert cmd_set_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')
-rw-r--r--source3/torture/cmd_vfs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c
index 8e392741eb..1b202084a9 100644
--- a/source3/torture/cmd_vfs.c
+++ b/source3/torture/cmd_vfs.c
@@ -1462,11 +1462,10 @@ static NTSTATUS cmd_set_nt_acl(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int a
}
fsp->conn = vfs->conn;
- status = create_synthetic_smb_fname_split(NULL, argv[1], NULL,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname = synthetic_smb_fname_split(NULL, argv[1], NULL);
+ if (smb_fname == NULL) {
TALLOC_FREE(fsp);
- return status;
+ return NT_STATUS_NO_MEMORY;
}
fsp->fsp_name = smb_fname;