From 2b97eb13ff7d97ddd7a4400a8073ea7b00119103 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:49:54 +0200 Subject: vfstest: Convert cmd_set_nt_acl to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/torture/cmd_vfs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3/torture') 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; -- cgit