summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:49:09 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:03 -0700
commit6f7d9b24d0bf8265c007c2c9745acdabd2e41990 (patch)
tree80dfa1673ebf42b5864ce646a807f158e5c72701 /source3/torture
parent6624095d6747432e1e19ee54902a804dcb2c0129 (diff)
downloadsamba-6f7d9b24d0bf8265c007c2c9745acdabd2e41990.tar.gz
samba-6f7d9b24d0bf8265c007c2c9745acdabd2e41990.tar.bz2
samba-6f7d9b24d0bf8265c007c2c9745acdabd2e41990.zip
vfstest: Convert cmd_utime to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/torture')
-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 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 <path> <access> <modify>\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) {