]> Dogcows Code - chaz/tar/blob - tests/extrac05.sh
Updated
[chaz/tar] / tests / extrac05.sh
1 #! /bin/sh
2 # This file is part of GNU tar testsuite.
3 # Copyright (C) 2004 Free Software Foundation, Inc.
4 #
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)
8 # any later version.
9 #
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.
14 #
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
18 # 02111-1307, USA.
19
20 # Problem: when extracting selected members from a PAX archive,
21 # tar 1.14 incorrectly deemed all members to be sparse and
22 # therefore was not able to properly skip them.
23 #
24 # Reported by: Luca Fibbi <fibbi@lamma.rete.toscana.it>
25 #
26 # References: <3.0.6.32.20040809113727.00a30e50@localhost>
27 # http://lists.gnu.org/archive/html/bug-tar/2004-08/msg00008.html
28
29 . ./preset
30 TAR_ARCHIVE_FORMATS="posix"
31 . $srcdir/before
32
33 genfile --length 118 > jeden
34 genfile --length 223 > dwa
35 genfile --length 517 > trzy
36 mksparse sparsefile 512 0 ABCD 1M EFGH 2000K IJKL
37 genfile --length 110 > cztery
38
39 tar cf archive jeden dwa trzy cztery
40
41 cat > list <<EOF
42 jeden
43 cztery
44 EOF
45
46 mkdir dir
47 cd dir
48
49 tar xvfT ../archive ../list
50
51 cd ..
52
53 out="\
54 jeden
55 cztery
56 "
57
58 . $srcdir/after
59
This page took 0.036839 seconds and 4 git commands to generate.