X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=tests%2Fextrac03.sh;h=94ae69e849cebb7b130140b28778fad933105b0b;hb=f6c0aee2904e40568eedfac56f0b887d82c491d5;hp=49cf46d74da606c911408855e07285fad34b1db8;hpb=51d54e051a584c12d8ecaa1fa260000f94b16c30;p=chaz%2Ftar diff --git a/tests/extrac03.sh b/tests/extrac03.sh index 49cf46d..94ae69e 100755 --- a/tests/extrac03.sh +++ b/tests/extrac03.sh @@ -1,4 +1,22 @@ #! /bin/sh +# This file is part of GNU tar testsuite. +# Copyright (C) 2004 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + # Paths going up and down were inducing extraction loops. . ./preset @@ -6,9 +24,9 @@ set -e mkdir directory -tar cfv archive directory/../directory +tar -cPvf archive directory/../directory echo ----- -tar xfv archive +tar -xPvf archive out="\ directory/../directory/