mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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
This commit is contained in:
1 parent
9946f5cae0
commit
7bbfd17355
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user