OSDN Git Service
(root)
/
linuxjm
/
LDP_man-pages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(split) LDP: Update original to v3.37.
[linuxjm/LDP_man-pages.git]
/
original
/
man2
/
readlink.2
diff --git
a/original/man2/readlink.2
b/original/man2/readlink.2
index
97d5ce9
..
41af696
100644
(file)
--- a/
original/man2/readlink.2
+++ b/
original/man2/readlink.2
@@
-1,5
+1,5
@@
.\" Copyright (c) 1983, 1991 The Regents of the University of California.
.\" Copyright (c) 1983, 1991 The Regents of the University of California.
-.\" A
dn
Copyright (C) 2011 Guillem Jover <guillem@hadrons.org>
+.\" A
nd
Copyright (C) 2011 Guillem Jover <guillem@hadrons.org>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@
-196,15
+196,15
@@
main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}
- if (r
!=
sb.st_size) {
+ if (r
>
sb.st_size) {
fprintf(stderr, "symlink increased in size "
"between lstat() and readlink()\\n");
exit(EXIT_FAILURE);
}
fprintf(stderr, "symlink increased in size "
"between lstat() and readlink()\\n");
exit(EXIT_FAILURE);
}
- linkname[sb.st_size] =
'\\0'
;
+ linkname[sb.st_size] =
\(aq\\0\(aq
;
- printf("
'%s' points to '%s'
\\n", argv[1], linkname);
+ printf("
\(aq%s\(aq points to \(aq%s\(aq
\\n", argv[1], linkname);
exit(EXIT_SUCCESS);
}
exit(EXIT_SUCCESS);
}