From 90aa291c39ca8970fbce310cc317c5cc7b392691 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Wed, 17 Sep 2014 18:50:08 +0100 Subject: cp: issue correct warning and ignore duplicate source dirs * src/copy.c (copy_internal): Handle the case where we have the same destination directory as already encountered, which can only be due to the corresponding source directory being specified multiple times. * tests/cp/duplicate-sources.sh: Add a test for the new multiply specified directory case, and the existing multiply specified file case. * tests/local.mk: Reference the new test. * NEWS: Mention the bug fix. --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 0908f7b1c..7e623dca9 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,12 @@ GNU coreutils NEWS -*- outline -*- * Noteworthy changes in release ?.? (????-??-??) [?] +** Bug fixes + + cp no longer issues an incorrect warning about directory hardlinks when a + source directory is specified multiple times. Instead a warning is issued + and the duplicate source directory is skipped, as already the case for files. + ** New features chroot accepts the new --skip-chdir option to not change the working directory -- cgit v1.2.3-70-g09d2