git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cb0564
)
vfstest: Convert cmd_open to synthetic_smb_fname
author
Volker Lendecke
<vl@samba.org>
Mon, 15 Apr 2013 09:43:38 +0000
(11:43 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 17 Apr 2013 21:50:02 +0000
(14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/cmd_vfs.c
patch
|
blob
|
history
diff --git
a/source3/torture/cmd_vfs.c
b/source3/torture/cmd_vfs.c
index 72bc2cadc4548486c76d81a8d17d8f8a6dee3cc7..0b3d0d0424fd9cf1121284f11c192457e570ac40 100644
(file)
--- 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;