summaryrefslogtreecommitdiff
path: root/batch.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-12-02 22:47:30 +0000
committerMartin Pool <mbp@samba.org>2001-12-02 22:47:30 +0000
commit384958ed3dcd18e8ec7cf2e5a6142812f14229d8 (patch)
tree4d1d02f905cdd8ade0b519dd2e2b0e0b839652ec /batch.c
parent1cd5beeb06e9df035aa36c89cdb9c3173a8e0bd6 (diff)
downloadrsync-384958ed3dcd18e8ec7cf2e5a6142812f14229d8.tar.gz
Note about crash from Ayamura KIKUCHI
Diffstat (limited to 'batch.c')
-rw-r--r--batch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/batch.c b/batch.c
index e45d3642..0a8b1cf6 100644
--- 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++) {
+ /* 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,