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
1336e414
Commit
1336e414
authored
Nov 27, 2001
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show symlink targets
parent
7c1b7890
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
tls.c
tls.c
+7
-2
No files found.
tls.c
View file @
1336e414
...
...
@@ -66,6 +66,7 @@ static void list_file (const char *fname)
char
permbuf
[
PERMSTRING_SIZE
];
struct
tm
*
mt
;
char
datebuf
[
50
];
char
linkbuf
[
4096
];
if
(
do_lstat
(
fname
,
&
buf
)
==
-
1
)
failed
(
"stat"
,
fname
);
...
...
@@ -82,6 +83,10 @@ static void list_file (const char *fname)
buf
.
st_mode
&=
~
0777
;
buf
.
st_mtime
=
(
time_t
)
0
;
buf
.
st_uid
=
buf
.
st_gid
=
0
;
strcpy
(
linkbuf
,
" -> "
);
readlink
(
fname
,
linkbuf
+
4
,
sizeof
(
linkbuf
)
-
4
);
}
else
{
linkbuf
[
0
]
=
0
;
}
permstring
(
permbuf
,
buf
.
st_mode
);
...
...
@@ -105,10 +110,10 @@ static void list_file (const char *fname)
/* NB: need to pass size as a double because it might be be
* too large for a long. */
printf
(
"%s %12.0f %6d.%-6d %s %s
\n
"
,
printf
(
"%s %12.0f %6d.%-6d %s %s
%s
\n
"
,
permbuf
,
(
double
)
buf
.
st_size
,
buf
.
st_uid
,
buf
.
st_gid
,
datebuf
,
fname
);
datebuf
,
fname
,
linkbuf
);
}
...
...
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