]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: issue correct warning and ignore duplicate source dirs
authorPádraig Brady <P@draigBrady.com>
Wed, 17 Sep 2014 17:50:08 +0000 (18:50 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 19 Sep 2014 10:25:23 +0000 (11:25 +0100)
commit90aa291c39ca8970fbce310cc317c5cc7b392691
tree2613a601eb8ce9970ec2e4bb1bb564a8db3336f4
parent8e93dc629727140e950a709008f9a17ca461af63
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
src/copy.c
tests/cp/duplicate-sources.sh [new file with mode: 0755]
tests/local.mk