diff options
author | Jim Meyering <jim@meyering.net> | 2007-06-18 11:17:30 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-06-18 15:19:34 +0200 |
commit | 0adc02a086c8a40bad3191d14b8612aae5ee9995 (patch) | |
tree | 504a0aa1a0037ede3ed2d781bafff966c06b394c /src/ls.c | |
parent | 063aa30a3dc226c481bddbf2cbce9f27c83edfc8 (diff) | |
download | coreutils-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/ls.c')
-rw-r--r-- | src/ls.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -104,7 +104,7 @@ #include "strverscmp.h" #include "wcwidth.h" #include "xstrtol.h" -#include "xreadlink.h" +#include "mreadlink.h" #define PROGRAM_NAME (ls_mode == LS_LS ? "ls" \ : (ls_mode == LS_MULTI_COL \ @@ -2837,7 +2837,7 @@ is_directory (const struct fileinfo *f) static void get_link_name (char const *filename, struct fileinfo *f, bool command_line_arg) { - f->linkname = xreadlink_with_size (filename, f->stat.st_size); + f->linkname = mreadlink_with_size (filename, f->stat.st_size); if (f->linkname == NULL) file_failure (command_line_arg, _("cannot read symbolic link %s"), filename); |