readlink.2: Minor fixes (copyright, example program)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2011-09-25 06:54:33 +02:00
parent 4ada4f45a4
commit f497e4567d
1 changed files with 2 additions and 2 deletions

View File

@ -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);