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
e66d70e3
Commit
e66d70e3
authored
Feb 18, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The '%n' escape needs to append a trailing slash onto a directory name.
parent
9361f839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
log.c
log.c
+6
-1
No files found.
log.c
View file @
e66d70e3
...
...
@@ -343,7 +343,7 @@ static void log_formatted(enum logcode code,
struct
stats
*
initial_stats
,
int
iflags
)
{
char
buf
[
MAXPATHLEN
+
1024
];
char
buf2
[
1024
];
char
buf2
[
MAXPATHLEN
];
char
*
p
,
*
n
;
size_t
len
,
total
;
int64
b
;
...
...
@@ -380,6 +380,11 @@ static void log_formatted(enum logcode code,
break
;
case
'n'
:
n
=
(
char
*
)
safe_fname
(
f_name
(
file
));
if
(
S_ISDIR
(
file
->
mode
))
{
/* The buffer from safe_fname() has more
* room than MAXPATHLEN, so this is safe. */
strcat
(
n
,
"/"
);
}
break
;
case
'L'
:
if
(
S_ISLNK
(
file
->
mode
))
{
...
...
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