summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-06-18 11:17:30 +0200
committerJim Meyering <jim@meyering.net>2007-06-18 15:19:34 +0200
commit0adc02a086c8a40bad3191d14b8612aae5ee9995 (patch)
tree504a0aa1a0037ede3ed2d781bafff966c06b394c /src/stat.c
parent063aa30a3dc226c481bddbf2cbce9f27c83edfc8 (diff)
downloadcoreutils-0adc02a086c8a40bad3191d14b8612aae5ee9995.tar.xz
Use mreadlink_with_size (doesn't exit), not xreadlink_with_size.
* bootstrap.conf (gnulib_modules): Add readlink-with-size. Remove xreadlink and xreadlink-with-size. * src/copy.c (copy_internal): Use mreadlink_with_size, not xreadlink_with_size. * src/ls.c (get_link_name): Likewise. * src/readlink.c (main): Likewise. * src/stat.c (print_stat): Likewise.
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stat.c b/src/stat.c
index b8cbbf58f..57439a472 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -68,7 +68,7 @@
#include "quotearg.h"
#include "stat-time.h"
#include "strftime.h"
-#include "xreadlink.h"
+#include "mreadlink.h"
#define alignof(type) offsetof (struct { char c; type x; }, x)
@@ -524,7 +524,7 @@ print_stat (char *pformat, size_t prefix_len, char m,
out_string (pformat, prefix_len, quote (filename));
if (S_ISLNK (statbuf->st_mode))
{
- char *linkname = xreadlink_with_size (filename, statbuf->st_size);
+ char *linkname = mreadlink_with_size (filename, statbuf->st_size);
if (linkname == NULL)
{
error (0, errno, _("cannot read symbolic link %s"),