mirror of https://github.com/mkerrisk/man-pages
readlink.2: Minor fixes (copyright, example program)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
4ada4f45a4
commit
f497e4567d
|
@ -1,5 +1,5 @@
|
|||
.\" Copyright (c) 1983, 1991 The Regents of the University of California.
|
||||
.\" Adn Copyright (C) 2011 Guillem Jover <guillem@hadrons.org>
|
||||
.\" And Copyright (C) 2011 Guillem Jover <guillem@hadrons.org>
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
|
@ -196,7 +196,7 @@ main(int argc, char *argv[])
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue