OSDN Git Service

(split) LDP: Update original to v3.37.
[linuxjm/LDP_man-pages.git] / original / man2 / readlink.2
index 97d5ce9..41af696 100644 (file)
@@ -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.
-.\" 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
 .\" 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);
 }