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
cc964a51
Commit
cc964a51
authored
Jan 02, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the new f_name_to() call instead of strlcat() an f_name().
parent
3309507d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sender.c
sender.c
+3
-3
No files found.
sender.c
View file @
cc964a51
...
...
@@ -170,7 +170,7 @@ void send_files(struct file_list *flist, int f_out, int f_in)
strlcat
(
fname
,
"/"
,
MAXPATHLEN
);
offset
=
strlen
(
file
->
basedir
)
+
1
;
}
strlcat
(
fname
,
f_name
(
file
),
MAXPATHLEN
);
f_name_to
(
file
,
fname
+
offset
,
MAXPATHLEN
-
offset
);
if
(
verbose
>
2
)
rprintf
(
FINFO
,
"send_files(%d, %s)
\n
"
,
i
,
fname
);
...
...
@@ -251,7 +251,7 @@ void send_files(struct file_list *flist, int f_out, int f_in)
/* read checksums originally computed on sender side */
read_batch_csum_info
(
i
,
s
,
&
checksums_match
);
if
(
checksums_match
)
{
read_batch_delta_file
(
(
char
*
)
&
j
,
sizeof
(
int
)
);
read_batch_delta_file
(
(
char
*
)
&
j
,
sizeof
(
int
)
);
if
(
j
!=
i
)
{
/* if flist index entries don't match*/
rprintf
(
FINFO
,
"index mismatch in send_files
\n
"
);
rprintf
(
FINFO
,
"read index = %d flist ndx = %d
\n
"
,
j
,
i
);
...
...
@@ -263,7 +263,7 @@ void send_files(struct file_list *flist, int f_out, int f_in)
write_sum_head
(
f_out
,
s
);
done
=
0
;
while
(
!
done
)
{
read_batch_delta_file
(
(
char
*
)
&
buff_len
,
sizeof
(
int
)
);
read_batch_delta_file
(
(
char
*
)
&
buff_len
,
sizeof
(
int
)
);
write_int
(
f_out
,
buff_len
);
if
(
buff_len
==
0
)
{
done
=
1
;
...
...
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