1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 # Test suite for GNU tar.
3 # Copyright 2015-2021 Free Software Foundation, Inc.
5 # GNU tar 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 3 of the License, or
8 # (at your option) any later version.
10 # GNU tar 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, see <http://www.gnu.org/licenses/>.
18 # Description: Extraction from concatenated incremental archives
19 # produced spurious error messages when trying to set file ownership
20 # and permissions on renamed directories
21 # Reported by: Alex Efros <powerman@powerman.name>
22 # References: <20151129094003.GD18347@home.power>
23 # http://lists.gnu.org/archive/html/bug-tar/2015-11/msg00033.html
25 AT_SETUP([concatenated incremental archives (renames)])
26 AT_KEYWORDS([incremental concat cat incr11 chdir])
31 AT_TAR_MKHIER([data/dir],[file])
33 tar -cvf full.tar -g snap -C data .
36 tar -cvf incr.tar -g snap -C data .
39 tar -A -f full2.tar incr.tar
42 tar -xvf full2.tar -g /dev/null -C out
67 tar: .: Directory is new
68 tar: ./dir: Directory is new
70 tar: ./dir2: Directory has been renamed from './dir'