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
c56595d7
Commit
c56595d7
authored
Jan 15, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that the generator sent us a valid index into basis_dir[].
parent
ce0b384f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
receiver.c
receiver.c
+7
-1
No files found.
receiver.c
View file @
c56595d7
...
@@ -40,6 +40,7 @@ extern int io_error;
...
@@ -40,6 +40,7 @@ extern int io_error;
extern
char
*
tmpdir
;
extern
char
*
tmpdir
;
extern
char
*
partial_dir
;
extern
char
*
partial_dir
;
extern
char
*
basis_dir
[];
extern
char
*
basis_dir
[];
extern
int
basis_dir_cnt
;
extern
int
make_backups
;
extern
int
make_backups
;
extern
int
do_progress
;
extern
int
do_progress
;
extern
char
*
backup_dir
;
extern
char
*
backup_dir
;
...
@@ -453,8 +454,13 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
...
@@ -453,8 +454,13 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
case
FNAMECMP_BACKUP
:
case
FNAMECMP_BACKUP
:
fnamecmp
=
get_backup_name
(
fname
);
fnamecmp
=
get_backup_name
(
fname
);
break
;
break
;
case
FNAMECMP_BASIS_DIR
:
default:
default:
if
(
j
>=
basis_dir_cnt
)
{
rprintf
(
FERROR
,
"invalid basis_dir index: %d.
\n
"
,
j
);
exit_cleanup
(
RERR_PROTOCOL
);
}
pathjoin
(
fnamecmpbuf
,
sizeof
fnamecmpbuf
,
pathjoin
(
fnamecmpbuf
,
sizeof
fnamecmpbuf
,
basis_dir
[
j
],
fname
);
basis_dir
[
j
],
fname
);
fnamecmp
=
fnamecmpbuf
;
fnamecmp
=
fnamecmpbuf
;
...
...
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