mirror of
https://repo.or.cz/socat.git
synced 2025-07-13 07:03:25 +00:00
Lots of minor corrections
This commit is contained in:
parent
7d6295114b
commit
1c1a91027a
19 changed files with 197 additions and 78 deletions
8
filan.c
8
filan.c
|
@ -412,8 +412,12 @@ int filan_stat(
|
|||
{
|
||||
char linktarget[PATH_MAX+1];
|
||||
memset(linktarget, 0, PATH_MAX+1);
|
||||
Readlink(filename, linktarget, PATH_MAX);
|
||||
fprintf(outfile, "LINKTARGET=%s", linktarget);
|
||||
if (Readlink(filename, linktarget, PATH_MAX) < 0) {
|
||||
Warn3("readlink(\"%s\", linktarget, %d): %s",
|
||||
filename, PATH_MAX, strerror(errno));
|
||||
} else {
|
||||
fprintf(outfile, "LINKTARGET=%s", linktarget);
|
||||
}
|
||||
}
|
||||
break;
|
||||
#endif /* S_IFLNK */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue