1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright 2005-2023 Free Software Foundation, Inc.
6 # This file is part of GNU tar.
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.
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.
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/>.
21 # In GNU format, when extracting or listing a file member with a name
22 # whose length is divisible by block size (512) tar used to read an
23 # extra block of data. In consequence the following file was not extracted.
24 # Reported by Josef Bauer
25 # References: <200501122145.j0CLjGhl006070@uhu.mchp.siemens.de>
26 # http://lists.gnu.org/archive/html/bug-tar/2005-01/msg00038.html
28 AT_SETUP([long file names divisible by block size])
29 AT_KEYWORDS([longname long512])
31 dnl Create a directory structure with maximum directory name length 512-16
32 m4_pushdef([NAME],[0123456789abcde])
33 m4_pushdef([FULLNAME],NAME)
34 m4_for([N],0,29,,[m4_define([FULLNAME],FULLNAME/NAME)])
37 AT_TAR_MKHIER(FULLNAME,NAME)
40 tar cf archive FULLNAME/NAME endfile
46 [],[],[],[gnu,oldgnu])