git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
389197e
)
vfstest: fix the "-c" multiple-command option
author
Guenter Kukkukk
<kukks@samba.org>
Tue, 12 Mar 2013 03:51:03 +0000
(
04:51
+0100)
committer
Richard Sharpe
<realrichardsharpe@gmail.com>
Tue, 12 Mar 2013 04:40:23 +0000
(21:40 -0700)
Signed-off-by: Guenter Kukkukk <kukks@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
source3/torture/vfstest.c
patch
|
blob
|
history
diff --git
a/source3/torture/vfstest.c
b/source3/torture/vfstest.c
index 54365e0350be4a93fe707373b14bbe6e4ac2a999..2cec68711d1636a43a6209e371a16a12d8d29266 100644
(file)
--- a/
source3/torture/vfstest.c
+++ b/
source3/torture/vfstest.c
@@
-108,7
+108,12
@@
static char *next_command(TALLOC_CTX *ctx, char **cmdstr)
if (p)
*p = '\0';
command = talloc_strdup(ctx, *cmdstr);
- *cmdstr = p;
+
+ /* Pass back the remaining cmdstring
+ (a trailing delimiter ";" does also work),
+ or NULL at last cmdstring.
+ */
+ *cmdstr = p ? p + 1 : p;
return command;
}