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
9cdadbb1
Commit
9cdadbb1
authored
Jan 24, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The in_del_hier code needs to use lastname instead of thisname
because the latter gets cleaned and (possibly) sanitized.
parent
0ace7b25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
flist.c
flist.c
+3
-2
No files found.
flist.c
View file @
9cdadbb1
...
...
@@ -647,13 +647,14 @@ static struct file_struct *receive_file_entry(struct file_list *flist,
in_del_hier
=
recurse
;
del_hier_name_len
=
file
->
dir
.
depth
==
0
?
0
:
l1
+
l2
;
if
(
relative_paths
&&
del_hier_name_len
>
2
&&
basename_len
==
1
+
1
&&
*
basename
==
'.'
)
&&
lastname
[
del_hier_name_len
-
1
]
==
'.'
&&
lastname
[
del_hier_name_len
-
2
]
==
'/'
)
del_hier_name_len
-=
2
;
file
->
flags
|=
FLAG_TOP_DIR
|
FLAG_DEL_HERE
;
}
else
if
(
in_del_hier
)
{
if
(
!
relative_paths
||
!
del_hier_name_len
||
(
l1
>=
del_hier_name_len
&&
this
name
[
del_hier_name_len
]
==
'/'
))
&&
last
name
[
del_hier_name_len
]
==
'/'
))
file
->
flags
|=
FLAG_DEL_HERE
;
else
in_del_hier
=
0
;
...
...
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