From: Jim Meyering Date: Tue, 1 Jun 2004 13:36:40 +0000 (+0000) Subject: (print_stat): Update use of xreadlink. X-Git-Tag: v5.3.0~1429 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c0097312366318092764ff69c3670a71e48ea0c;p=thirdparty%2Fcoreutils.git (print_stat): Update use of xreadlink. --- diff --git a/src/stat.c b/src/stat.c index cf2dd0fbec..c4593fee38 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"),