cpio: archive more files
authorIsaac Dunham <ibid.ag@gmail.com>
Sun, 1 Jun 2014 18:50:39 +0000 (13:50 -0500)
committerIsaac Dunham <ibid.ag@gmail.com>
Sun, 1 Jun 2014 18:50:39 +0000 (13:50 -0500)
commit670626ab009f1d369be94def71f48be2e88f0106
treecdf9e2e09148f68005e7ccc532e3f0191686fb86
parentc20fb908bb733a3d7c1dda77a3c1d22d5c3fafec
cpio: archive more files
While writing tests for cpio, I found that cpio tries to open empty
files if they're regular files, and fails to archive them if unreadable.
This can be easily avoided, and is not the usual behavior.
scripts/test/cpio.test [new file with mode: 0755]
toys/posix/cpio.c