]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_stat): Update use of xreadlink.
authorJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 13:36:40 +0000 (13:36 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 13:36:40 +0000 (13:36 +0000)
src/stat.c

index cf2dd0fbecbde508f981313232e1dd7c7818475f..c4593fee3869ebb5ff7da5879090dcc51d8ae8af 100644 (file)
@@ -433,7 +433,7 @@ print_stat (char *pformat, char m, char const *filename, void const *data)
       strcat (pformat, "s");
       if (S_ISLNK (statbuf->st_mode))
        {
-         char *linkname = xreadlink (filename);
+         char *linkname = xreadlink (filename, statbuf->st_size);
          if (linkname == NULL)
            {
              error (0, errno, _("cannot read symbolic link %s"),