Commit Graph

69 Commits

Author SHA1 Message Date
Paul Eggert 27225be1a3 scripts: fix option parsing
Problem reported by Dennis Wydra in
<http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00082.html>.
* scripts/backup.in: Accept "-l LEVEL".  Be more systematic about
backslashes inside ``; it shouldn't matter for modern shells but
it might matter for older ones.
* scripts/restore.in: Likewise.
* scripts/backup.in: Adjust implementation of -t/--time to match
the new implementation of -l/--level.
2010-11-22 15:18:41 -08:00
Paul Eggert a59c819beb tar: don't assume size of a sparse file chunk fits in size_t
* src/tar.h (struct sp_array): Change numbytes from size_t to off_t.
All uses changed.
* scripts/xsparse.c (struct sp_array): Likewise.
Include <stdint.h>, for SIZE_MAX.
(expand_sparse): Don't try to allocate a buffer bigger than
SIZE_MAX bytes.
* src/common.h (SIZE_TO_CHARS, size_to_chars, SIZE_FROM_HEADER):
(size_from_header): Remove decls.
* src/create.c (size_to_chars): Remove.
* src/list.c (size_from_header): Remove.
* src/sparse.c (sparse_extract_region, check_data_region):
(oldgnu_add_sparse, oldgnu_store_sparse_info, pax_decode_header):
Don't assume chunk sizes fit in size_t.
(oldgnu_add_sparse): Check for off_t overflow.
* src/xheader.c (sparse_numbytes_decoder, sparse_map_decoder):
Likewise.
2010-08-24 16:50:49 -07:00
Paul Eggert 0ab5e64ac0 tar: remove trailing white space from source files
* ChangeLog.1, ChangeLog.CVS, Makefile.am, NEWS, README:
* README-hacking, directory, doc/Makefile.am, doc/dumpdir.texi:
* doc/gendocs_template, doc/intern.texi, doc/mastermenu.el:
* doc/snapshot.texi, doc/sparse.texi, doc/tar-snapshot-edit.texi:
* doc/value.texi, lib/Makefile.am, scripts/backup-specs:
* scripts/dump-remind.in, scripts/tar-snapshot-edit, scripts/tarcat:
* scripts/xsparse.c, src/arith.h, src/buffer.c, src/compare.c:
* src/create.c, src/delete.c, src/exit.c, src/suffix.c, src/tar.c:
* src/tar.h, src/update.c, src/warning.c, src/xheader.c:
* tests/append01.at, tests/append02.at, tests/atlocal.in:
* tests/delete03.at, tests/exclude.at, tests/exclude06.at:
* tests/extrac04.at, tests/extrac05.at, tests/extrac06.at:
* tests/extrac07.at, tests/filerem01.at, tests/filerem02.at:
* tests/incr01.at, tests/incr02.at, tests/incr03.at, tests/incr06.at:
* tests/label02.at, tests/label03.at, tests/label04.at:
* tests/label05.at, tests/link02.at, tests/link03.at:
* tests/listed01.at, tests/listed02.at, tests/long01.at:
* tests/longv7.at, tests/multiv01.at, tests/multiv02.at:
* tests/multiv03.at, tests/multiv05.at, tests/multiv06.at:
* tests/multiv07.at, tests/multiv08.at, tests/options.at:
* tests/options02.at, tests/remfiles03.at, tests/rename01.at:
* tests/rename02.at, tests/rename03.at, tests/rename04.at:
* tests/rename05.at, tests/same-order01.at, tests/same-order02.at:
* tests/shortfile.at, tests/shortupd.at, tests/sparse01.at:
* tests/sparse02.at, tests/sparsemv.at, tests/sparsemvp.at:
* tests/star/README, tests/star/gtarfail2.at:
* tests/star/multi-fail.at:
* tests/star/pax-big-10g.at, tests/star/quicktest.sh:
* tests/star/ustar-big-2g.at, tests/star/ustar-big-8g.at:
* tests/update01.at, tests/update02.at, tests/volsize.at:
* tests/volume.at:
Remove trailing spaces and tabs from lines, and remove
trailing empty lines from files.  This makes it a bit easier
to share code among coreutils and other projects that do this.
2010-08-19 15:50:07 -07:00
Eric Blake a0fd0d95e2 Fix large file support.
* scripts/xsparse.c (read_map): Use fseeko.
* src/incremen.c (write_directory_file): Likewise.
2010-03-02 18:08:07 +02:00
Sergey Poznyakoff ac6caa71bc Migrate to Git 2009-03-07 16:30:44 +02:00
Sergey Poznyakoff a0fb51e136 Relicense under GPLv3 2007-06-27 13:30:12 +00:00
Sergey Poznyakoff 01cf5c5315 New file 2007-06-16 12:09:59 +00:00
Sergey Poznyakoff 868ee74028 (expand_sparse): use ftruncate to handle the trailing hole 2007-01-19 15:41:55 +00:00
Sergey Poznyakoff 85a4e0fdeb Do not depend on getopt.h 2006-06-26 11:18:54 +00:00
Sergey Poznyakoff bf5ba3dbef A sample utility to expand sparse files
extracted by third-party tars. It is not meant to be installed nor
to be included in the distribution. It is here, so that it can be
obtained either from CVS or from the tar web site.
2006-06-25 12:44:04 +00:00
Paul Eggert 78b078b455 * NEWS: --version now outputs copyright etc., to conform to the
GNU coding standards.  Remove --license.
* gnulib.modules: Add version-etc-fsf.
* doc/tar.texi: Document the change.
* lib/.cvsignore: Add version-etc-fsf.c, version-etc.c, version-etc.h.
* scripts/Makefile.am (SED_CMD): Update PAKCAGE_NAME, not PACKAGE.
* scripts/backup.in: Remove --license.  Change --version to conform
to GCS.
* scripts/restore.in: Likewise.
* scripts/backup.sh.in (license): Output briefer license in the
style of coreutils, for consistency with other changes.
* src/tar.c: Include <version-etc.h>.
(LICENSE_OPTION): Remove.
(options): Remove --license.
(license): Remove.
(parse_opt): Use version_etc instead of rolling it ourselves.
Remove --license.
* tests/version.at (tar --version): Check only the first line of
output.
2006-02-07 22:18:36 +00:00
Sergey Poznyakoff c7ab8eaba4 Use TAR_VOLUME instead of reading volno file. 2005-12-06 23:13:28 +00:00
Sergey Poznyakoff 85890103ae Handle archives in pax format. Improve handling of traditional archives. 2005-11-11 00:27:21 +00:00
Sergey Poznyakoff 9d5fd390dc Bugfixes. 2005-05-27 12:03:39 +00:00
Sergey Poznyakoff 2c49c610be (mt_begin,mt_rewind,mt_offline,mt_status): Use $MT to invoke mt
(init_common): Set --rsh-command option for mt if TAPE_FILE is a
 remote archive.
2005-05-26 12:50:30 +00:00
Sergey Poznyakoff ec89da307c Minor fixes 2005-05-26 12:50:11 +00:00
Paul Eggert 120e96c480 Update FSF postal mail address. 2005-05-15 03:59:08 +00:00
Sergey Poznyakoff fdbb1d8c7c (restore_fs): Use root_fs 2005-03-03 23:16:03 +00:00
Sergey Poznyakoff f04c7701fa Use `head -n 1'. Provide missing argument to ${MT_STATUS}. Fixed typo in MT_OFFLINE assignment. Proposed by Jan Merka. 2005-03-03 23:14:52 +00:00
Sergey Poznyakoff 63e90fdc62 Use `head -n 1'. Provide missing argument to ${MT_STATUS}. Proposed by Jan Merka. 2005-03-03 23:14:23 +00:00
Sergey Poznyakoff d5f1626556 Updated 2004-11-26 19:08:25 +00:00
Sergey Poznyakoff c8b0fd28c2 Concatenate multivolume archives 2004-11-26 19:08:14 +00:00
Sergey Poznyakoff 8771e7c560 Renamed LIBPATH to LIBDIR.
New option -a (--all). Do not start restore unless
-a or patterns are given.
(restore_fs,restore_files): Fixed use of --listed option.
2004-08-19 13:09:37 +00:00
Sergey Poznyakoff 1992ef9496 (test_root): Append / to ROOT_FS unless it already ends in it. 2004-08-19 13:09:16 +00:00
Sergey Poznyakoff 73030de19f Renamed LIBPATH to LIBDIR.
Use ROOT_FS with -C option. Do not send mail
if ADMINISTRATOR is set to NONE.
2004-08-19 13:08:43 +00:00
Sergey Poznyakoff 2b708cb119 Fixed --version output. 2004-05-10 11:38:54 +00:00
Sergey Poznyakoff c6096f64c5 Fixed --version output.
Fixed initialization of the listing files and printing
the time of the last previous level dump.
2004-05-10 11:38:16 +00:00
Sergey Poznyakoff b9c6ebab26 Install the scripts only if requested by the configure. 2004-05-10 11:37:54 +00:00
Sergey Poznyakoff d58eaa815d Minor fix 2004-05-08 22:22:24 +00:00
Sergey Poznyakoff f71b35b3f6 Removed 2004-05-08 22:19:40 +00:00
Sergey Poznyakoff ef87ce7d10 New file 2004-05-08 22:14:52 +00:00
Sergey Poznyakoff 22fae29fb7 New file. Source for backup.sh 2004-05-08 22:14:05 +00:00
Sergey Poznyakoff 981980ac31 Removed 2004-05-08 22:12:18 +00:00
Sergey Poznyakoff 6246fffacd Updated 2004-05-08 22:11:21 +00:00
Sergey Poznyakoff 24af03768f Updated 2004-05-06 09:16:53 +00:00
Sergey Poznyakoff d2d8f9ab55 Updated 2004-05-06 09:16:06 +00:00
Sergey Poznyakoff 31e36b1e93 Updated for new directory contents. 2004-05-06 09:15:35 +00:00
Sergey Poznyakoff 6c4dc180dd Added to the repository 2004-05-06 09:14:51 +00:00
Sergey Poznyakoff 0273b1ae09 Removed 2004-05-06 09:14:29 +00:00
Sergey Poznyakoff 4dc30d7397 Added to the repository 2003-07-24 14:43:30 +00:00
Paul Eggert 15726fabad (AUTOMAKE_OPTIONS): Remove. 2003-07-05 01:04:08 +00:00
Paul Eggert c291b38642 Use ## on copyright notice. 1999-12-13 02:24:29 +00:00
Paul Eggert 0772ef9315 block-size -> blocking 1997-04-24 23:59:17 +00:00
Paul Eggert ef26f3e717 block-size -> blocking 1997-04-24 23:58:02 +00:00
Paul Eggert 09d04878de GNU tar 1.13 1996-04-17 15:24:58 +00:00
Paul Eggert 5238c10143 Initial revision 1996-01-09 03:17:57 +00:00
François Pinard 3bf00060f3 *** empty log message *** 1994-11-16 02:49:16 +00:00
François Pinard 4ea60be930 *** empty log message *** 1994-11-16 02:49:14 +00:00
François Pinard e32022f88e *** empty log message *** 1994-11-16 02:49:12 +00:00
François Pinard f9a11075d9 *** empty log message *** 1994-11-16 02:49:10 +00:00