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
151f59f1
Commit
151f59f1
authored
Jul 22, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked a comment and some null-char assignments.
parent
89f2a4c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
flist.c
flist.c
+6
-6
No files found.
flist.c
View file @
151f59f1
...
...
@@ -1159,7 +1159,7 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
if
(
!
relative_paths
)
{
p
=
strrchr
(
fname
,
'/'
);
if
(
p
)
{
*
p
=
0
;
*
p
=
'\0'
;
if
(
p
==
fname
)
dir
=
"/"
;
else
...
...
@@ -1167,10 +1167,10 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
fname
=
p
+
1
;
}
}
else
if
(
implied_dirs
&&
(
p
=
strrchr
(
fname
,
'/'
))
&&
p
!=
fname
)
{
/*
this ensures we send the intermediate directories,
thus getting their permissions right
*/
/*
Send the implied directories at the start of the
* source spec, so we get their permissions right.
*/
char
*
lp
=
lastpath
,
*
fn
=
fname
,
*
slash
=
fname
;
*
p
=
0
;
*
p
=
'\0'
;
/* Skip any initial directories in our path that we
* have in common with lastpath. */
while
(
*
fn
&&
*
lp
==
*
fn
)
{
...
...
@@ -1185,13 +1185,13 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
copy_links
=
copy_unsafe_links
;
xfer_dirs
=
1
;
while
((
slash
=
strchr
(
slash
+
1
,
'/'
))
!=
0
)
{
*
slash
=
0
;
*
slash
=
'\0'
;
send_file_name
(
f
,
flist
,
fname
,
0
);
*
slash
=
'/'
;
}
copy_links
=
save_copy_links
;
xfer_dirs
=
save_xfer_dirs
;
*
p
=
0
;
*
p
=
'\0'
;
strlcpy
(
lastpath
,
fname
,
sizeof
lastpath
);
*
p
=
'/'
;
}
...
...
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