Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
ce58b1b4
Commit
ce58b1b4
authored
Jan 22, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Size-check the --temp-dir string so we don't have to worry about it
overflowing elsewhere in the code.
parent
a16d8f2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
options.c
options.c
+6
-1
No files found.
options.c
View file @
ce58b1b4
...
...
@@ -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
,
"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
);
}
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
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment