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
311676ed
Commit
311676ed
authored
Apr 16, 2008
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem with how the daemon filters deal with
a destination directory with a trailing slash.
parent
4616867b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
main.c
main.c
+14
-6
No files found.
main.c
View file @
311676ed
...
...
@@ -507,12 +507,20 @@ static char *get_local_name(struct file_list *flist, char *dest_path)
if
(
!
dest_path
||
list_only
)
return
NULL
;
if
(
daemon_filter_list
.
head
&&
(
check_filter
(
&
daemon_filter_list
,
FLOG
,
dest_path
,
0
!=
0
)
<
0
||
check_filter
(
&
daemon_filter_list
,
FLOG
,
dest_path
,
1
!=
0
)
<
0
))
{
rprintf
(
FERROR
,
"skipping daemon-excluded destination
\"
%s
\"\n
"
,
dest_path
);
exit_cleanup
(
RERR_FILESELECT
);
if
(
daemon_filter_list
.
head
)
{
char
*
slash
=
strrchr
(
dest_path
,
'/'
);
if
(
slash
&&
slash
[
1
]
==
'\0'
)
*
slash
=
'\0'
;
else
slash
=
NULL
;
if
(
check_filter
(
&
daemon_filter_list
,
FLOG
,
dest_path
,
0
)
<
0
||
check_filter
(
&
daemon_filter_list
,
FLOG
,
dest_path
,
1
)
<
0
)
{
rprintf
(
FERROR
,
"skipping daemon-excluded destination
\"
%s
\"\n
"
,
dest_path
);
exit_cleanup
(
RERR_FILESELECT
);
}
if
(
slash
)
*
slash
=
'/'
;
}
/* See what currently exists at the destination. */
...
...
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