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
21914d81
Commit
21914d81
authored
Sep 23, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made clean_flist() only duplicate *_DIR_* flags on a dropped dir
when the kept entry is also a dir.
parent
200aec7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
flist.c
flist.c
+2
-5
No files found.
flist.c
View file @
21914d81
...
...
@@ -2392,6 +2392,8 @@ static void clean_flist(struct file_list *flist, int strip_root)
else
{
if
(
am_sender
)
file
->
flags
|=
FLAG_DUPLICATE
;
else
/* Make sure we don't lose vital flags. */
fp
->
flags
|=
file
->
flags
&
(
FLAG_TOP_DIR
|
FLAG_XFER_DIR
);
keep
=
j
,
drop
=
i
;
}
}
else
...
...
@@ -2403,11 +2405,6 @@ static void clean_flist(struct file_list *flist, int strip_root)
"removing duplicate name %s from file list (%d)
\n
"
,
f_name
(
file
,
fbuf
),
drop
+
flist
->
ndx_start
);
}
/* Make sure we don't lose track of a user-specified
* top directory. */
flist
->
sorted
[
keep
]
->
flags
|=
flist
->
sorted
[
drop
]
->
flags
&
(
FLAG_TOP_DIR
|
FLAG_XFER_DIR
);
clear_file
(
flist
->
sorted
[
drop
]);
}
...
...
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