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
e8e9e12c
Commit
e8e9e12c
authored
Sep 15, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting last change for a re-think.
parent
6e6daf5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
flist.c
flist.c
+12
-8
No files found.
flist.c
View file @
e8e9e12c
...
...
@@ -2298,16 +2298,20 @@ static void clean_flist(struct file_list *flist, int strip_root)
int
keep
,
drop
;
/* If one is a dir and the other is not, we want to
* keep the dir because it might have contents in the
* list. If both are dirs, keep the last one.
* Otherwise keep the first one. */
if
(
S_ISDIR
(
file
->
mode
))
keep
=
i
,
drop
=
j
;
else
* list. Otherwise keep the first one. */
if
(
S_ISDIR
(
file
->
mode
))
{
struct
file_struct
*
fp
=
flist
->
sorted
[
j
];
if
(
!
S_ISDIR
(
fp
->
mode
))
keep
=
i
,
drop
=
j
;
else
{
if
(
am_sender
)
file
->
flags
|=
FLAG_DUPLICATE
;
keep
=
j
,
drop
=
i
;
}
}
else
keep
=
j
,
drop
=
i
;
if
(
am_sender
)
flist
->
sorted
[
drop
]
->
flags
|=
FLAG_DUPLICATE
;
else
{
if
(
!
am_sender
)
{
if
(
verbose
>
1
)
{
rprintf
(
FINFO
,
"removing duplicate name %s from file list (%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