]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
cp: copy files by inode
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Feb 2014 19:30:53 +0000 (11:30 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Feb 2014 19:31:25 +0000 (11:31 -0800)
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.

src/copy.c

index 0b7c59ea95ad4df2a684dd855835fb2982234423..7afb80113bd47d021ff71ea5cccbf20c194784d0 100644 (file)
@@ -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