X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=tests%2Fextrac03.sh;h=e223094155ced68650a4573ad174fe473bfce4fc;hb=ac7c2b7116c8603ba8f4945e176b944da5b6da28;hp=49cf46d74da606c911408855e07285fad34b1db8;hpb=51d54e051a584c12d8ecaa1fa260000f94b16c30;p=chaz%2Ftar diff --git a/tests/extrac03.sh b/tests/extrac03.sh index 49cf46d..e223094 100755 --- a/tests/extrac03.sh +++ b/tests/extrac03.sh @@ -1,14 +1,33 @@ #! /bin/sh + # Paths going up and down were inducing extraction loops. +# 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. + . ./preset . $srcdir/before set -e mkdir directory -tar cfv archive directory/../directory +tar -cPvf archive directory/../directory echo ----- -tar xfv archive +tar -xPvf archive out="\ directory/../directory/