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
a5342644
Commit
a5342644
authored
Jan 27, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the new names for the transmit-flag defines.
parent
5d196694
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
batch.c
batch.c
+5
-3
receiver.c
receiver.c
+3
-2
No files found.
batch.c
View file @
a5342644
...
...
@@ -45,8 +45,10 @@ void write_batch_flist_info(int flist_count, struct file_struct **files)
write_int
(
f
,
protocol_version
);
write_int
(
f
,
flist_count
);
for
(
i
=
0
;
i
<
flist_count
;
i
++
)
send_file_entry
(
files
[
i
],
f
,
files
[
i
]
->
flags
&
LIVE_FLAGS
);
for
(
i
=
0
;
i
<
flist_count
;
i
++
)
{
send_file_entry
(
files
[
i
],
f
,
files
[
i
]
->
flags
&
FLAG_TOP_DIR
?
XMIT_TOP_DIR
:
0
);
}
send_file_entry
(
NULL
,
f
,
0
);
protocol_version
=
save_pv
;
...
...
@@ -149,7 +151,7 @@ struct file_list *create_flist_from_batch(void)
out_of_memory
(
"create_flist_from_batch"
);
for
(
i
=
0
;
(
flags
=
read_byte
(
f
))
!=
0
;
i
++
)
{
if
(
protocol_version
>=
28
&&
(
flags
&
EXTENDED_FLAGS
))
if
(
protocol_version
>=
28
&&
(
flags
&
XMIT_
EXTENDED_FLAGS
))
flags
|=
read_byte
(
f
)
<<
8
;
receive_file_entry
(
&
batch_flist
->
files
[
i
],
flags
,
f
);
}
...
...
receiver.c
View file @
a5342644
...
...
@@ -91,8 +91,9 @@ void delete_files(struct file_list *flist)
}
for
(
j
=
0
;
j
<
flist
->
count
;
j
++
)
{
if
(
!
S_ISDIR
(
flist
->
files
[
j
]
->
mode
)
||
!
(
flist
->
files
[
j
]
->
flags
&
FLAG_DELETE
))
continue
;
if
(
!
(
flist
->
files
[
j
]
->
flags
&
FLAG_TOP_DIR
)
||
!
S_ISDIR
(
flist
->
files
[
j
]
->
mode
))
continue
;
argv
[
0
]
=
f_name_to
(
flist
->
files
[
j
],
fbuf
);
...
...
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