]> Dogcows Code - chaz/tar/blob - tests/volsize.at
24ac55bb6286b195b7d754f5cf60478b4e0e27be
[chaz/tar] / tests / volsize.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2
3 # Test suite for GNU tar.
4 # Copyright 2006-2009, 2013 Free Software Foundation, Inc.
5
6 # This file is part of GNU tar.
7
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # Description: The size field of a volume header was ignored when listing,
22 # but taken into account when extracting. Thus it was possible to hide
23 # some files within the archive, placing them after a volume header and
24 # manually modifying its size field. Test tarball kindly provided by Tomas.
25 # Reported by: Thomas <metaf4@users.askja.de>
26 # References: <4462E13A.3080008@users.askja.de>,
27 # <44639C4C.5050401@users.askja.de>
28
29 AT_SETUP([volume header size])
30 AT_KEYWORDS([volume volsize])
31
32 AT_TAR_CHECK([
33 AT_SORT_PREREQ
34 AT_TARBALL_PREREQ([abc.tar],[540f196ceddcad9e7bd2f2d7533d0474])
35
36 echo Short Listing
37 tar tf $TEST_DATA_DIR/abc.tar
38 echo Verbose Listing
39 tar --utc -tvf $TEST_DATA_DIR/abc.tar
40 echo Extracted directory
41 tar xf $TEST_DATA_DIR/abc.tar
42 find abc|sort
43 ],
44 [0],
45 [Short Listing
46 abc/not-a-file.gif
47 abc/CCC
48 Verbose Listing
49 V--------- 0/0 1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
50 -rw-r--r-- tom/users 0 2006-04-22 19:52 abc/CCC
51 Extracted directory
52 abc
53 abc/CCC
54 ],
55 [])
56
57 AT_CLEANUP
58
59 # End of volsize.at
This page took 0.034231 seconds and 3 git commands to generate.