summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:47:17 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:03 -0700
commit7d5403037ad6d14c912c19a6970ebea9a43c942b (patch)
tree00416c9db4c53f0ba5e50dc33b57e7afffecb95a
parenta6985e6e678e2ca8867097671192cf3a94e772e1 (diff)
downloadsamba-7d5403037ad6d14c912c19a6970ebea9a43c942b.tar.gz
samba-7d5403037ad6d14c912c19a6970ebea9a43c942b.tar.bz2
samba-7d5403037ad6d14c912c19a6970ebea9a43c942b.zip
vfstest: Convert cmd_stat to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/torture/cmd_vfs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c
index 868220af18..f2f1e00668 100644
--- a/source3/torture/cmd_vfs.c
+++ b/source3/torture/cmd_vfs.c
@@ -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);