cpio: avoid 'not created: newer or same age file exists' message for dirs

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Pascal Bellard
2010-10-18 00:54:51 +02:00
committed by Denys Vlasenko
parent cadf90184c
commit 873bb31d17
2 changed files with 13 additions and 1 deletions

View File

@@ -116,6 +116,16 @@ link
" "" ""
SKIP=
# avoid 'not created: newer or same age file exists' message for directories
rm -rf cpio.testdir cpio.testdir2 2>/dev/null
mkdir cpio.testdir
testing "cpio extracts in existing directory" \
"$ECHO -ne '$hexdump' | bzcat | cpio -id 2>&1; echo \$?" \
"\
1 blocks
0
" "" ""
SKIP=
# Clean up
rm -rf cpio.testdir cpio.testdir2 2>/dev/null