From 6f7d9b24d0bf8265c007c2c9745acdabd2e41990 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:49:09 +0200 Subject: vfstest: Convert cmd_utime 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/torture') diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 5568245237..8e392741eb 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -974,7 +974,6 @@ static NTSTATUS cmd_utime(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, { struct smb_file_time ft; struct smb_filename *smb_fname = NULL; - NTSTATUS status; if (argc != 4) { printf("Usage: utime \n"); @@ -986,10 +985,9 @@ static NTSTATUS cmd_utime(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, ft.atime = convert_time_t_to_timespec(atoi(argv[2])); ft.mtime = convert_time_t_to_timespec(atoi(argv[3])); - 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_NTIMES(vfs->conn, smb_fname, &ft) != 0) { -- cgit