diff options
author | Bruno Haible <bruno@clisp.org> | 2007-03-01 08:06:24 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-03-01 08:06:24 +0100 |
commit | f6f2846bd8aba934fd823e71d1de66f0d2806756 (patch) | |
tree | 0e99879409bea2527445aebab975e392f575ce61 /src/copy.c | |
parent | e5dbc718410926dac32cf55dc3061c4b9e6c4946 (diff) | |
download | coreutils-f6f2846bd8aba934fd823e71d1de66f0d2806756.tar.xz |
* bootstrap.conf (gnulib_modules): Replace xreadlink with
xreadlink-with-size. Add xreadlink.
* src/copy.c (copy_internal): Update.
* src/ls.c (is_directory): Update.
* src/stat.c (print_stat): Update.
* src/readlink.c (main): Use the one-argument xreadlink function.
Diffstat (limited to 'src/copy.c')
-rw-r--r-- | src/copy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/copy.c b/src/copy.c index 99e2ca40c..000c248eb 100644 --- a/src/copy.c +++ b/src/copy.c @@ -1720,7 +1720,7 @@ copy_internal (char const *src_name, char const *dst_name, } else if (S_ISLNK (src_mode)) { - char *src_link_val = xreadlink (src_name, src_sb.st_size); + char *src_link_val = xreadlink_with_size (src_name, src_sb.st_size); if (src_link_val == NULL) { error (0, errno, _("cannot read symbolic link %s"), quote (src_name)); @@ -1740,7 +1740,8 @@ copy_internal (char const *src_name, char const *dst_name, FIXME: This behavior isn't documented, and seems wrong in some cases, e.g., if the destination symlink has the wrong ownership, permissions, or time stamps. */ - char *dest_link_val = xreadlink (dst_name, dst_sb.st_size); + char *dest_link_val = + xreadlink_with_size (dst_name, dst_sb.st_size); if (STREQ (dest_link_val, src_link_val)) same_link = true; free (dest_link_val); |