]>
Dogcows Code - chaz/tar/blob - tests/ignfail.sh
2 # This file is part of GNU tar testsuite.
3 # Copyright (C) 2004 Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 # Unreadable directories yielded error despite --ignore-failed-read.
26 set - x
`ls -l check-uid`
28 set - x
`ls -ln check-uid`
30 if test "$uid_name" = root
|| test "$uid_number" = 0; then
32 # The test is meaningless for super-user.
46 test $status = 2 || exit 1
50 tar cf archive
--ignore-failed-read file || exit 1
53 test $status = 0 || exit 1
57 tar cf archive directory
60 test $status = 2 || exit 1
64 tar cf archive
--ignore-failed-read directory
|| exit 1
67 test $status = 0 || exit 1
71 tar: file: Cannot open: Permission denied
72 tar: Error exit delayed from previous errors
74 tar: file: Warning: Cannot open: Permission denied
76 tar: directory: Cannot savedir: Permission denied
77 tar: Error exit delayed from previous errors
79 tar: directory: Warning: Cannot savedir: Permission denied
This page took 0.035328 seconds and 4 git commands to generate.