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
dbd9ea3e
Commit
dbd9ea3e
authored
Dec 17, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use F_ROOTDIR() in place of dir.root.
parent
2ef03405
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
log.c
log.c
+2
-2
sender.c
sender.c
+4
-4
No files found.
log.c
View file @
dbd9ea3e
...
@@ -516,9 +516,9 @@ static void log_formatted(enum logcode code, const char *format, const char *op,
...
@@ -516,9 +516,9 @@ static void log_formatted(enum logcode code, const char *format, const char *op,
strlcpy
(
c
,
fname
,
MAXPATHLEN
);
strlcpy
(
c
,
fname
,
MAXPATHLEN
);
}
else
}
else
c
=
f_name
(
file
,
NULL
);
c
=
f_name
(
file
,
NULL
);
if
(
am_sender
&&
file
->
dir
.
root
)
{
if
(
am_sender
&&
F_ROOTDIR
(
file
)
)
{
pathjoin
(
buf2
,
sizeof
buf2
,
pathjoin
(
buf2
,
sizeof
buf2
,
file
->
dir
.
root
,
c
);
F_ROOTDIR
(
file
)
,
c
);
clean_fname
(
buf2
,
0
);
clean_fname
(
buf2
,
0
);
if
(
fmt
[
1
])
{
if
(
fmt
[
1
])
{
strlcpy
(
c
,
buf2
,
MAXPATHLEN
);
strlcpy
(
c
,
buf2
,
MAXPATHLEN
);
...
...
sender.c
View file @
dbd9ea3e
...
@@ -128,9 +128,9 @@ void successful_send(int ndx)
...
@@ -128,9 +128,9 @@ void successful_send(int ndx)
return
;
return
;
file
=
the_file_list
->
files
[
ndx
];
file
=
the_file_list
->
files
[
ndx
];
if
(
file
->
dir
.
root
)
{
if
(
F_ROOTDIR
(
file
)
)
{
offset
=
stringjoin
(
fname
,
sizeof
fname
,
offset
=
stringjoin
(
fname
,
sizeof
fname
,
file
->
dir
.
root
,
"/"
,
NULL
);
F_ROOTDIR
(
file
)
,
"/"
,
NULL
);
}
else
}
else
offset
=
0
;
offset
=
0
;
f_name
(
file
,
fname
+
offset
);
f_name
(
file
,
fname
+
offset
);
...
@@ -202,9 +202,9 @@ void send_files(struct file_list *flist, int f_out, int f_in)
...
@@ -202,9 +202,9 @@ void send_files(struct file_list *flist, int f_out, int f_in)
continue
;
continue
;
file
=
flist
->
files
[
i
];
file
=
flist
->
files
[
i
];
if
(
file
->
dir
.
root
)
{
if
(
F_ROOTDIR
(
file
)
)
{
/* N.B. We're sure that this fits, so offset is OK. */
/* N.B. We're sure that this fits, so offset is OK. */
offset
=
strlcpy
(
fname
,
file
->
dir
.
root
,
sizeof
fname
);
offset
=
strlcpy
(
fname
,
F_ROOTDIR
(
file
)
,
sizeof
fname
);
if
(
!
offset
||
fname
[
offset
-
1
]
!=
'/'
)
if
(
!
offset
||
fname
[
offset
-
1
]
!=
'/'
)
fname
[
offset
++
]
=
'/'
;
fname
[
offset
++
]
=
'/'
;
}
else
}
else
...
...
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