From b3b74044074dcb07c0bf3a239bca9124a8910560 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 27 Feb 2014 00:07:14 -0800 Subject: [PATCH 2/2] cp: copy files by inode only if that facility is available * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/copy.c b/src/copy.c index 7afb801..4998386 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, 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 -- 1.8.5.3