diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-15 11:44:35 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:02 -0700 |
commit | 434885a4ac4ba1c75326c847a484e65f7dd16153 (patch) | |
tree | 32517ccd4a0fc9e36203e3886d33e2c85387821b /source3/torture | |
parent | 1f6b0af7e7da0b5fb2d2e52f070caffe643113d2 (diff) | |
download | samba-434885a4ac4ba1c75326c847a484e65f7dd16153.tar.gz samba-434885a4ac4ba1c75326c847a484e65f7dd16153.tar.bz2 samba-434885a4ac4ba1c75326c847a484e65f7dd16153.zip |
vfstest: Convert cmd_pathfunc 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 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 0b3d0d0424..f9c350a919 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -397,13 +397,11 @@ static NTSTATUS cmd_pathfunc(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int arg if (strcmp("rmdir", argv[0]) == 0 ) { ret = SMB_VFS_RMDIR(vfs->conn, argv[1]); } else if (strcmp("unlink", argv[0]) == 0 ) { - struct smb_filename *smb_fname = NULL; - NTSTATUS status; + struct smb_filename *smb_fname; - 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_UNLINK(vfs->conn, smb_fname); |