]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cat: allow copying empty files to themselves
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Sep 2014 15:45:32 +0000 (08:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Sep 2014 15:47:38 +0000 (08:47 -0700)
commit3b1ac4b1edd6f56155196ce79e6a58c652f03f2f
tree65cda39434853ebc16fad227b21e83b49b477f16
parente8715100cb2824fbd8ec724728a21fffdbcdb9f5
cat: allow copying empty files to themselves

Problem reported by Vincent Lefevre in: http://bugs.gnu.org/18449
* src/cat.c (main): Allow copying an empty file to itself.
* tests/misc/cat-self.sh: New test.
* tests/local.mk (all_tests): Add it.
src/cat.c
tests/local.mk
tests/misc/cat-self.sh [new file with mode: 0755]