vfstest: Convert cmd_set_nt_acl to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2013 09:49:54 +0000 (11:49 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:50:03 +0000 (14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/cmd_vfs.c

index 8e392741eb0a144711ed591a679a3164426bb9f1..1b202084a9843137ba2acbfd908c352d4dd86b63 100644 (file)
@@ -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;