From: Paul Eggert Date: Wed, 26 Feb 2014 19:30:53 +0000 (-0800) Subject: cp: copy files by inode X-Git-Tag: v8.23~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=069723c5eef34736b35b21af1d76ddfbd594a259;p=thirdparty%2Fcoreutils.git cp: copy files by inode Problem reported by Bernhard Voelker in: http://lists.gnu.org/archive/html/coreutils/2014-02/msg00034.html * src/copy.c (copy_dir): Adjust to recent gnulib change. --- diff --git a/src/copy.c b/src/copy.c index 0b7c59ea95..7afb80113b 100644 --- a/src/copy.c +++ b/src/copy.c @@ -598,7 +598,7 @@ copy_dir (char const *src_name_in, char const *dst_name_in, bool new_dst, struct cp_options non_command_line_options = *x; bool ok = true; - name_space = savedir (src_name_in); + name_space = savedir (src_name_in, SAVEDIR_SORT_INODE); if (name_space == NULL) { /* This diagnostic is a bit vague because savedir can fail in