multiv03.at
来自「gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件」· AT 代码 · 共 72 行
AT
72 行
# Process this file with autom4te to create testsuite. -*- Autotest -*-# Test suite for GNU tar.# Copyright (C) 2004, 2005, 2006, 2007 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 3, 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., 51 Franklin Street, Fifth Floor, Boston, MA# 02110-1301, USA.# Problem: GNU multivolume archives are not able to continue on members# with filenames longer than 100 characters. Versions of tar <= 1.14# were not checking filename lengths and produced malformed multivolume# headers.# References: <20040809214854.GB32706@suse.de># http://lists.gnu.org/archive/html/bug-tar/2004-08/msg00012.html# <200604270859.47241.Juergen.Vollmer@informatik-vollmer.de># AT_SETUP([MV archive & long filenames])AT_KEYWORDS([multivolume multiv multiv03])AT_TAR_CHECK([AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`cat > ../experr <<EOFtar: $BFILE: file name too long to be stored in a GNU multivolume header, truncatedtar: \`$BFILE' is possibly continued on this volume: header contains truncated nameEOFcat > ../expout <<EOF$AFILEseparator-1separator-2EOFgenfile --length 15360 --file $AFILEexec <&-tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1tar -tM -f arch.1 -f arch.2 || exit 1echo separator-1genfile --length 15360 --file $BFILEtar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1echo separator-2mv $BFILE bfiletar -M -x -f arch.1 -f arch.2 || exit 1cmp $BFILE bfile],[0],[expout],[experr],[],[],[gnu, oldgnu])AT_CLEANUP
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?