.\" 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
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);
}
- 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);
}