Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ed84db
)
Mention the number of child args.
author
Wayne Davison
<wayned@samba.org>
Sat, 7 May 2011 19:11:33 +0000
(12:11 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sat, 7 May 2011 19:11:56 +0000
(12:11 -0700)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
5200a9a
..
abf0cd4
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-94,6
+94,7
@@
int fd_pair(int fd[2])
void print_child_argv(const char *prefix, char **cmd)
{
void print_child_argv(const char *prefix, char **cmd)
{
+ int cnt = 0;
rprintf(FCLIENT, "%s ", prefix);
for (; *cmd; cmd++) {
/* Look for characters that ought to be quoted. This
rprintf(FCLIENT, "%s ", prefix);
for (; *cmd; cmd++) {
/* Look for characters that ought to be quoted. This
@@
-107,8
+108,9
@@
void print_child_argv(const char *prefix, char **cmd)
} else {
rprintf(FCLIENT, "%s ", *cmd);
}
} else {
rprintf(FCLIENT, "%s ", *cmd);
}
+ cnt++;
}
}
- rprintf(FCLIENT, "
\n"
);
+ rprintf(FCLIENT, "
(%d args)\n", cnt
);
}
NORETURN void out_of_memory(const char *str)
}
NORETURN void out_of_memory(const char *str)