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
58a14ed9
Commit
58a14ed9
authored
Mar 04, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of some code in the main recv_files() loop by calling the
new functions read_iflags() and maybe_log_item().
parent
165e6d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
24 deletions
+7
-24
receiver.c
receiver.c
+7
-24
No files found.
receiver.c
View file @
58a14ed9
...
@@ -386,15 +386,9 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
...
@@ -386,15 +386,9 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
continue
;
continue
;
}
}
if
(
i
<
0
||
i
>=
flist
->
count
)
{
iflags
=
read_iflags
(
f_in
,
-
1
,
i
,
fnametmp
);
/* Handle the new keep-alive (no-op) packet. */
if
(
iflags
==
ITEM_IS_NEW
)
/* no-op packet */
if
(
i
==
flist
->
count
&&
protocol_version
>=
29
continue
;
&&
read_shortint
(
f_in
)
==
ITEM_IS_NEW
)
continue
;
rprintf
(
FERROR
,
"Invalid file index %d in recv_files (count=%d)
\n
"
,
i
,
flist
->
count
);
exit_cleanup
(
RERR_PROTOCOL
);
}
file
=
flist
->
files
[
i
];
file
=
flist
->
files
[
i
];
fname
=
local_name
?
local_name
:
f_name_to
(
file
,
fbuf
);
fname
=
local_name
?
local_name
:
f_name_to
(
file
,
fbuf
);
...
@@ -402,21 +396,10 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
...
@@ -402,21 +396,10 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
if
(
verbose
>
2
)
if
(
verbose
>
2
)
rprintf
(
FINFO
,
"recv_files(%s)
\n
"
,
safe_fname
(
fname
));
rprintf
(
FINFO
,
"recv_files(%s)
\n
"
,
safe_fname
(
fname
));
if
(
protocol_version
>=
29
)
{
if
(
!
(
iflags
&
ITEM_UPDATING
)
||
!
S_ISREG
(
file
->
mode
))
{
iflags
=
read_shortint
(
f_in
);
maybe_log_item
(
file
,
iflags
,
itemizing
,
fnametmp
);
if
(
!
(
iflags
&
ITEM_UPDATING
)
||
!
S_ISREG
(
file
->
mode
))
{
continue
;
int
see_item
=
itemizing
&&
(
iflags
||
verbose
>
1
);
}
if
(
am_server
)
{
if
(
am_daemon
&&
!
dry_run
&&
see_item
)
log_item
(
file
,
&
stats
,
iflags
,
NULL
);
}
else
if
(
see_item
||
iflags
&
ITEM_UPDATING
||
(
S_ISDIR
(
file
->
mode
)
&&
iflags
&
ITEM_REPORT_TIME
))
log_item
(
file
,
&
stats
,
iflags
,
NULL
);
continue
;
}
}
else
iflags
=
ITEM_UPDATING
|
ITEM_MISSING_DATA
;
if
(
!
S_ISREG
(
file
->
mode
))
{
if
(
!
S_ISREG
(
file
->
mode
))
{
rprintf
(
FERROR
,
"[%s] got index of non-regular file: %d
\n
"
,
rprintf
(
FERROR
,
"[%s] got index of non-regular file: %d
\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