⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multiv03.at

📁 gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件
💻 AT
字号:
# 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -