From 6624095d6747432e1e19ee54902a804dcb2c0129 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:48:05 +0200 Subject: vfstest: Convert cmd_lstat to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/torture/cmd_vfs.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index f2f1e00668..5568245237 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -749,17 +749,15 @@ static NTSTATUS cmd_lstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, struct smb_filename *smb_fname = NULL; SMB_STRUCT_STAT st; time_t tmp_time; - NTSTATUS status; if (argc != 2) { printf("Usage: lstat \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; } if (SMB_VFS_LSTAT(vfs->conn, smb_fname) == -1) { -- cgit