summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-01 13:36:40 +0000
committerJim Meyering <jim@meyering.net>2004-06-01 13:36:40 +0000
commit5c0097312366318092764ff69c3670a71e48ea0c (patch)
tree1881a4571c4d0db461f99cd9e1af179a753b0e17 /src
parentb99bf39b10b7c2d1eda55ca0c03cc4a9d93333dd (diff)
downloadcoreutils-5c0097312366318092764ff69c3670a71e48ea0c.tar.xz
(print_stat): Update use of xreadlink.
Diffstat (limited to 'src')
-rw-r--r--src/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c
index cf2dd0fbe..c4593fee3 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -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"),