]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
cp: copy files by inode only if that facility is available
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Feb 2014 08:07:14 +0000 (00:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Feb 2014 08:07:59 +0000 (00:07 -0800)
* src/copy.c (copy_dir): Use the new SAVEDIR_SORT_FASTREAD, not
SAVEDIR_SORT_INODE.  Problem reported by Bernhard Voelker in:
http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html

src/copy.c

index 7afb80113bd47d021ff71ea5cccbf20c194784d0..49983869f9baf26dc5244f7e6002cb2b12d9c714 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, SAVEDIR_SORT_INODE);
+  name_space = savedir (src_name_in, SAVEDIR_SORT_FASTREAD);
   if (name_space == NULL)
     {
       /* This diagnostic is a bit vague because savedir can fail in