Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Size-check the --temp-dir string so we don't have to worry about it
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
166afdb
..
d719a4d
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-605,11
+605,16
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
}
if (batch_prefix && strlen(batch_prefix) > MAX_BATCH_PREFIX_LEN) {
rprintf(FERROR,
}
if (batch_prefix && strlen(batch_prefix) > MAX_BATCH_PREFIX_LEN) {
rprintf(FERROR,
- "the batch
_prefix string
must be %d characters or less.\n",
+ "the batch
-file prefix
must be %d characters or less.\n",
MAX_BATCH_PREFIX_LEN);
exit_cleanup(RERR_SYNTAX);
}
MAX_BATCH_PREFIX_LEN);
exit_cleanup(RERR_SYNTAX);
}
+ if (tmpdir && strlen(tmpdir) >= MAXPATHLEN - 10) {
+ rprintf(FERROR, "the --temp-dir path is WAY too long.\n");
+ exit_cleanup(RERR_SYNTAX);
+ }
+
if (do_compression && (write_batch || read_batch)) {
rprintf(FERROR,
"compress can not be used with write-batch or read-batch\n");
if (do_compression && (write_batch || read_batch)) {
rprintf(FERROR,
"compress can not be used with write-batch or read-batch\n");