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:
1cd5bee
)
Note about crash from Ayamura KIKUCHI
author
Martin Pool
<mbp@samba.org>
Sun, 2 Dec 2001 22:47:30 +0000
(22:47 +0000)
committer
Martin Pool
<mbp@samba.org>
Sun, 2 Dec 2001 22:47:30 +0000
(22:47 +0000)
batch.c
patch
|
blob
|
blame
|
history
diff --git
a/batch.c
b/batch.c
index
e45d364
..
0a8b1cf
100644
(file)
--- a/
batch.c
+++ b/
batch.c
@@
-150,6
+150,10
@@
void write_batch_argvs_file(int orig_argc, int argc, char **argv)
/* Write argvs info to batch file */
for (i = argc - orig_argc; i < argc; i++) {
/* Write argvs info to batch file */
for (i = argc - orig_argc; i < argc; i++) {
+ /* FIXME: This apparently crashes if rsync is run with
+ * just "rsync -F". I think directly manipulating
+ * argv[] is probably bogus -- what if -F is part of a
+ * run of several short options? */
if (!strcmp(argv[i], "-F")) { /* safer to change it here than script */
strncat(buff, "-f ", 3); /* chg to -f + ext to get ready for remote */
strncat(buff, batch_file_ext,
if (!strcmp(argv[i], "-F")) { /* safer to change it here than script */
strncat(buff, "-f ", 3); /* chg to -f + ext to get ready for remote */
strncat(buff, batch_file_ext,