]>
Dogcows Code - chaz/tar/blob - link01.sh
06aa74bb66ae5f5b22d2d226fd54d1f09e55ffb1
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 # If a member with link count > 2 was stored in the archive twice,
21 # previous versions of tar were not able to extract it, since they
22 # were trying to link the file to itself, which always failed and
23 # lead to removing the already extracted copy. This script tests
24 # the workaround by Paul Eggert that leaves the extracted copy
27 # The script is based on the report by Toby Peterson <toby@apple.com>
36 echo TEST
> directory
/test
1/test.txt
37 ln directory
/test
1/test.txt directory
/test
2/test.txt
39 tar cf archive directory
/test
1/test.txt directory
/test
1/test.txt
This page took 0.037293 seconds and 3 git commands to generate.