vfstest: Convert cmd_stat to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2013 09:47:17 +0000 (11:47 +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 868220af1825cd99950122cbaafbb745e531b083..f2f1e00668e908014c8d68cbf1513869eb6753f0 100644 (file)
@@ -610,17 +610,15 @@ static NTSTATUS cmd_stat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c
        struct smb_filename *smb_fname = NULL;
        SMB_STRUCT_STAT st;
        time_t tmp_time;
-       NTSTATUS status;
 
        if (argc != 2) {
                printf("Usage: stat <fname>\n");
                return NT_STATUS_OK;
        }
 
-       status = create_synthetic_smb_fname_split(mem_ctx, argv[1], NULL,
-                                                 &smb_fname);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
+       smb_fname = synthetic_smb_fname_split(mem_ctx, argv[1], NULL);
+       if (smb_fname == NULL) {
+               return NT_STATUS_NO_MEMORY;
        }
 
        ret = SMB_VFS_STAT(vfs->conn, smb_fname);