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
865efe94
Commit
865efe94
authored
Aug 27, 2011
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sending of "." attributes for implied-dot-dir.
parent
18749579
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
flist.c
flist.c
+13
-8
No files found.
flist.c
View file @
865efe94
...
...
@@ -2190,12 +2190,8 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
fn
=
fbuf
;
/* A leading ./ can be used in relative mode to affect
* the dest dir without its name being in the path. */
if
(
*
fn
==
'.'
&&
fn
[
1
]
==
'/'
&&
!
implied_dot_dir
)
{
send_file_name
(
f
,
flist
,
"."
,
NULL
,
(
flags
|
FLAG_IMPLIED_DIR
)
&
~
FLAG_CONTENT_DIR
,
ALL_FILTERS
);
implied_dot_dir
=
1
;
}
if
(
*
fn
==
'.'
&&
fn
[
1
]
==
'/'
&&
fn
[
2
]
&&
!
implied_dot_dir
)
implied_dot_dir
=
-
1
;
len
=
clean_fname
(
fn
,
CFN_KEEP_TRAILING_SLASH
|
CFN_DROP_TRAILING_DOT_DIR
);
if
(
len
==
1
)
{
...
...
@@ -2233,11 +2229,20 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
dirlen
=
dir
?
strlen
(
dir
)
:
0
;
if
(
dirlen
!=
lastdir_len
||
memcmp
(
lastdir
,
dir
,
dirlen
)
!=
0
)
{
if
(
!
change_pathname
(
NULL
,
dir
,
-
dirlen
))
continue
;
goto
bad_path
;
lastdir
=
pathname
;
lastdir_len
=
pathname_len
;
}
else
if
(
!
change_pathname
(
NULL
,
lastdir
,
lastdir_len
))
}
else
if
(
!
change_pathname
(
NULL
,
lastdir
,
lastdir_len
))
{
bad_path:
if
(
implied_dot_dir
<
0
)
implied_dot_dir
=
0
;
continue
;
}
if
(
implied_dot_dir
<
0
)
{
send_file_name
(
f
,
flist
,
"."
,
NULL
,
(
flags
|
FLAG_IMPLIED_DIR
)
&
~
FLAG_CONTENT_DIR
,
ALL_FILTERS
);
implied_dot_dir
=
1
;
}
if
(
fn
!=
fbuf
)
memmove
(
fbuf
,
fn
,
len
+
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