]>
Dogcows Code - chaz/tar/blob - tests/ignfail.sh
2 # Unreadable directories yielded error despite --ignore-failed-read.
8 set - x
`ls -l check-uid`
9 if test $3 = root
; then
11 # The test is meaningless for super-user.
25 test $status = 2 || exit 1
29 tar cf archive
--ignore-failed-read file || exit 1
32 test $status = 0 || exit 1
36 tar cf archive directory
39 test $status = 2 || exit 1
43 tar cf archive
--ignore-failed-read directory
|| exit 1
46 test $status = 0 || exit 1
50 tar: Cannot add file file: Permission denied
51 tar: Error exit delayed from previous errors
53 tar: Cannot add file file: Permission denied
55 tar: Cannot add directory directory: Permission denied
56 tar: Error exit delayed from previous errors
58 tar: Cannot add directory directory: Permission denied
This page took 0.033637 seconds and 4 git commands to generate.