diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-15 11:43:38 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:02 -0700 |
commit | 1f6b0af7e7da0b5fb2d2e52f070caffe643113d2 (patch) | |
tree | 521364f4e14b83e151de72a60e1acaa773f31c27 /source3/torture | |
parent | 0cb056472dc38010ea12aed167ea664c7c5c912a (diff) | |
download | samba-1f6b0af7e7da0b5fb2d2e52f070caffe643113d2.tar.gz |
vfstest: Convert cmd_open 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.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 72bc2cadc45..0b3d0d0424f 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -331,11 +331,10 @@ static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c } fsp->conn = vfs->conn; - status = create_synthetic_smb_fname_split(NULL, argv[1], NULL, - &smb_fname); - if (!NT_STATUS_IS_OK(status)) { + smb_fname = synthetic_smb_fname_split(NULL, argv[1], NULL); + if (smb_fname == NULL) { TALLOC_FREE(fsp); - return status; + return NT_STATUS_NO_MEMORY; } fsp->fsp_name = smb_fname; |