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
53f821f1
Commit
53f821f1
authored
Feb 24, 1999
by
David Dykstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug with rsync -R --delete from ./ as reported in PR#1532
parent
b33b791e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
flist.c
flist.c
+10
-1
No files found.
flist.c
View file @
53f821f1
...
...
@@ -638,8 +638,17 @@ struct file_list *send_file_list(int f,int argc,char *argv[])
l
=
strlen
(
fname
);
if
(
l
!=
1
&&
fname
[
l
-
1
]
==
'/'
)
{
if
((
l
==
2
)
&&
(
fname
[
0
]
==
'.'
))
{
/* Turn ./ into just . rather than ./.
This was put in to avoid a problem with
rsync -aR --delete from ./
The send_file_name() below of ./ was
mysteriously preventing deletes */
fname
[
1
]
=
0
;
}
else
{
strlcat
(
fname
,
"."
,
MAXPATHLEN
);
}
}
if
(
link_stat
(
fname
,
&
st
)
!=
0
)
{
io_error
=
1
;
...
...
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