summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.30release_1_30Sergey Poznyakoff2017-12-172-5/+11
| | | | | * configure.ac: Set version 1.30 * NEWS: Update.
* Fix "concatenating" typo.Paul Eggert2017-11-201-1/+1
| | | | | | Problem reported by Rodrigo Queiro in: https://lists.gnu.org/r/bug-tar/2017-11/msg00021.html * doc/intern.texi (Extensions): Fix typo.
* Port to gcc -Wimplicit-fallthrough=5Paul Eggert2017-11-1810-50/+45
| | | | | | | * src/common.h (FALLTHROUGH): New macro, for use with gcc -Wimplicit-fallthrough=5, which is now the default when used with Gnulib after commit 2017-05-16T16:23:52!eggert@cs.ucla.edu and with --enable-gcc-warnings
* Port to Texinfo 6.4Paul Eggert2017-11-182-15/+15
| | | | | * doc/tar.texi (Sparse Recovery): Omit ‘.’ from anchor name, as ‘makeinfo’ now complains about it. All uses changed.
* Document base-256 representation in GNU formatPaul Eggert2017-11-181-6/+18
| | | | | | | Problem reported by Rodrigo Queiro in: https://lists.gnu.org/r/bug-tar/2017-11/msg00018.html * doc/intern.texi (Standard, Extensions): Document base-256 representations.
* build: update gnulib submodule to latestPaul Eggert2017-11-181-0/+0
|
* Fix typo caught by GCC 7.2.1Paul Eggert2017-11-181-0/+1
| | | | * lib/wordsplit.c (wordsplit_perror): Add missing "break;".
* Update docsSergey Poznyakoff2017-11-163-64/+143
| | | | | | * doc/Makefile.am: Add recipes.texi * doc/recipes.texi: New file. * doc/tar.texi: New appendix "Recipes"
* tests: more deterministic xattr07Pavel Raiskup2017-11-161-1/+1
| | | | * tests/xattr07.at: Define order of files within tested archive.
* Minor improvements in the docs.Sergey Poznyakoff2017-11-162-2/+5
|
* New option --warning=failed-readSergey Poznyakoff2017-11-166-11/+66
| | | | | | | | | | | | | * NEWS: Document the --warning=failed-read option. * doc/tar.texi: Likewise. * doc/tar.1: Likewise. * src/common.h (WARN_FAILED_READ): New constant. (WARNING_ENABLED): New macro. * src/misc.c (close_diag, open_diag) (read_diag_details, readlink_diag) (savedir_diag, seek_diag_details) (stat_diag): Suppress warnings if WARN_FAILED_READ is set. * src/warning.c (failed-read): New keyword.
* Fix docsSergey Poznyakoff2017-11-161-5/+5
| | | | | | | * doc/tar.texi: Fix description of the argument to --xattrs-exclude and --xattrs-include option. It is a globbing pattern, not a regex. Fix a typo (LZOP)
* Fix the --delay-directory-restore optionSergey Poznyakoff2017-11-165-6/+87
| | | | | | | | | | | | * src/extract.c (find_direct_ancestor): New function. (create_placeholder_file): Set after_links member on delayed_set_stat entries starting from the direct ancestor of the placeholder file. * tests/extrac21.at: New testcase. * tests/testsuite.at: Add extrac21 * tests/Makefile.am: Likewise. * NEWS: Update.
* Fix reporting of hardlink mismatch during compareSergey Poznyakoff2017-11-096-2/+51
| | | | | | | | | | * src/common.h (quote_n_colon): New prototype. * src/misc.c (quote_n_colon): New function. * src/compare.c (report_difference, diff_link): Use quote_n_colon. * tests/difflink.at: New file. * tests/Makefile.am: Add difflink.at * tests/testsuite.at: Likewise.
* Fix --verbatim-files-fromSergey Poznyakoff2017-11-092-6/+12
| | | | | | | * src/names.c (read_next_name): Don't unquote name read from the file, if --verbatim-files-from option is in effect. (names_options): improve description of --verbatim-files-from * tests/T-null2.at: Test the change.
* Fix typoSergey Poznyakoff2017-11-091-1/+1
| | | | * doc/tar.texi
* Fix the effect of --transform over hard link targets without the ↵Sergey Poznyakoff2017-09-304-1/+45
| | | | | | | | | | --absolute-names * src/create.c (file_count_links): Apply safer_name_suffix to the hard link name prior to transforming it. * tests/xform03.at: New test case. * tests/Makefile.am: Add xform03.at * tests/testsuite.at: Likewise.
* BugfixSergey Poznyakoff2017-08-241-0/+1
| | | | * src/tar.c (tar_help_filter): Add missing break statement
* Fix typoTroels Thomsen2017-06-291-2/+2
|
* Fix non-deterministic archive type detectionPavel Raiskup2017-05-291-4/+6
| | | | | | | | | | | Due to analysis of partly uninitialized read-ahead buffer (short_read call), we sometimes mistakenly classified very small compressed archives as non-compressed; which in turn caused extraction failure. * src/buffer.c (check_compressed_archive): Don't assume that archives smaller than BLOCKSIZE could be non-compressed, as tar header always has at least one block.
* Fix handling of directories removed during incremental tar runJonas Julino2017-05-296-2/+132
| | | | | | | | | | | | Co-authored-by: Sergey Poznyakoff <gray@gnu.org.ua> * paxutils: Upgrade * src/create.c (create_archive): Use file_removed_diag instead of calling the corresponding *_diag function directly. * tests/dirrem01.at: New testcase. * tests/dirrem02.at: New testcase. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Likewise.
* Fix a bug in multi-volume archive creation.Sergey Poznyakoff2017-05-294-14/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | When creating multivolume archives, the bufmap code in buffer.c implicitly assumed that the members are stored in the archive contiguously, ignoring the member (and eventual extended) headers between them. This worked until the member header happened to be at the very beginning of the volume, in which case its length was included in the calculation of the stored size and size left to store. Due to this, the GNUFileParts extended header contained invalid GNU.volume.offset value, and the resulting archive failed to extract properly. This patch also eliminates improper listing of file part headers as regular files, when creating multivolume posix archives with -v. * src/buffer.c (bufmap): New member nblocks. Counts number of blocks of file data written since reset. (bufmap_reset): Reset nblocks to 0. (_flush_write): Update nblocks. When computing offset difference for bufmap_reset, count only data blocks, not headers. (close_archive): Flush archive until all blocks are written. (add_chunk_header): Use simple_finish_header instead of finish_header to avoid listing chunk header as regular file in verbose mode. * tests/multiv10.at: New test case. * tests/Makefile.am: Add new test. * tests/testsuite.at: Add new test.
* --numeric-owner now affects private headers tooPaul Eggert2017-04-062-21/+28
| | | | | | | | | Problem reported by Daniel Peebles in: http://lists.gnu.org/archive/html/bug-tar/2017-04/msg00004.html * NEWS: Document this. * src/create.c (write_gnu_long_link): If --numeric-owner, leave the user and group empty in a private header. Cache the names for 0.
* Test and document --keep-directory-symlinkPavel Raiskup2017-02-284-0/+156
| | | | | | | * doc/tar.1: Document the option. * tests/extrac20.at: New testcase. * tests/Makefile.am: Mention extrac20. * tests/testsuite.at: Likewise.
* Fix incompatibility with PGI 16.10Paul Eggert2017-02-141-7/+7
| | | | | * src/tar.c (options): Fix incompatibility with the C standard, which says that arguments to macro calls cannot contain # directives.
* Update copyright yearsSergey Poznyakoff2017-01-02290-344/+394
|
* Fix description of the "escape" quoting styleSergey Poznyakoff2016-11-121-7/+4
|
* Better error checking in the backup script.Sergey Poznyakoff2016-11-122-5/+10
| | | | | | * scripts/backup.in: Check exit code of MT_BEGIN * scripts/backup.sh.in (backup_host): Return meaningful code in case of remote execution. See the comment, though.
* Minor documentation fixSergey Poznyakoff2016-11-121-1/+1
| | | | * doc/tar.texi: Fix example about use of --no-recursion with -T
* Fix the --add-file option.Sergey Poznyakoff2016-11-126-23/+92
| | | | | | | | | | | | | | * src/common.h (name_more_files): New proto. (files_from_option): Remove. * src/names.c (name_more_files): New file. (names_options): Fix declaration of the add-file option. (names_parse_opt): Handle --add-file. * src/tar.c (struct tar_args): Remove the input_files member. Change all uses: use name_more_files() instead. * tests/Makefile.am: Add new test. * tests/add-file.at: New testcase. * tests/testsuite.at: Add new test.
* Add missing filesSergey Poznyakoff2016-11-111-0/+73
|
* don't set xattrs when --skip-old-files is usedPavel Raiskup2016-11-114-16/+30
| | | | | | | | | | * src/extract.c (set_xattr): Properly handle maybe_recoverable() output. Throw warnings to not complicate caller. (extract_file): Don't handle set_xattr's error. * tests/xattr07.at: New testcase. * tests/Makefile.am: Mention new testcase. * tests/testsuite.at: Likewise. * THANKS: Dawid.
* Minor fixSergey Poznyakoff2016-11-112-2/+2
| | | | * src/tar.h (tar_stat_info): Change type of real_size_set to bool
* sparse: fix pax extraction for unicode filenamesPavel Raiskup2016-11-115-4/+63
| | | | | | | | | | | | | | | | | | | Make sure that 'GNU.sparse.name' header has higher priority than (for sparse-purposes artificially modified) 'path' pax header. Historically, the 'GNU.sparse.name' header comes before 'path'; this caused that modified 'path' header won and that is not what we want in sparse "capable" tar implementation. * src/tar.h (tar_stat_info): New argument sparse_name_done. * src/xheader.c (raw_path_decoder): Move here the unconditional code from path_decoder. (path_decoder): Apply raw_path_decoder only if sparse_path_decoder was not yet called. (sparse_path_decoder): New wrapper around raw_path_decoder. * tests/sparse07.at: New testcase. * tests/testsuite.at: Mention new testcase. * tests/Makefile.am: Likewise.
* * tests/xattr06.at: Test include/exclude during archive/exctract.Pavel Raiskup2016-11-102-10/+15
|
* Bugfix - fix xattr exclude/include for archive createIan McLeod2016-11-104-5/+63
| | | | | | | | | | | This makes archive create behavior consistent with the documentation. Without this change xattr include/exclude options are accepted when creating an archive but are silently ignored. * src/xattrs.c (xattrs_xattrs_get): Apply exclude/include mask when fetching extended attributes * tests/Makefile.am: Add new test case. * tests/testsuite.at: Likewise.
* When extracting, skip ".." membersPaul Eggert2016-10-292-1/+15
| | | | | | * NEWS: Document this. * src/extract.c (extract_archive): Skip members whose names contain "..".
* Mark all tests related to -C option with the "chdir" keywordSergey Poznyakoff2016-09-2647-47/+47
|
* Fix interaction of -u with -CSergey Poznyakoff2016-09-264-1/+54
| | | | | | | | * src/update.c (update_archive): Pass correct change_dir value for addname * tests/update03.at: New file. * tests/Makefile.am: Add update03.at * tests/testsuite.at: Include update03.at
* Fix passing string values via TAR_OPTIONSSergey Poznyakoff2016-09-214-1/+48
| | | | | | | * src/tar.c (parse_default_options): Don't free parsed words. * tests/options03.at: New testcase. * tests/Makefile.am: Add options03.at * tests/testsuite.at: Include options03.at
* Tiny bugfixSergey Poznyakoff2016-05-281-0/+1
|
* Report positional options that were used but had no effect during archive ↵Sergey Poznyakoff2016-05-279-7/+308
| | | | | | | | | | | | | | | | | | | | | | creation * src/names.c (file_selection_option) (file_selection_option_name): New functions. (unconsumed_option_push, unconsumed_option_free) (unconsumed_option_report): New functions. (name_list_advance): Maintain a list of eventually unconsumed options during archive creation. Report unconsumed options, if any. * tests/positional01.at: New test case. * tests/positional02.at: New test case. * tests/positional03.at: New test case. * tests/Makefile.am: Add new test cases. * tests/testsuite.at: Likewise. * NEWS: Document the changes. * configure.ac: Version 1.29.90 * doc/tar.texi: Document the changes.
* Version 1.29release_1_29Sergey Poznyakoff2016-05-162-3/+3
|
* Minor fixSergey Poznyakoff2016-05-165-14/+14
| | | | * src/names.c (new_name): rename to make_file_name. All uses changed.
* Fix argument handling when running external commands.Sergey Poznyakoff2016-04-142-8/+9
| | | | | | | | * src/system.c (xexec): Use sh -c to run the command. This fixed bug introduced by 7b5e80396 (tar 1.27) * doc/tar.texi: Fix checkpoint examples: (1) $TAR_FILENAME is not available when creating archive and (2) --checkpoint can't be used as abbreviation of --checkpoint-action
* Remove iotty testSergey Poznyakoff2016-04-066-529/+1
| | | | | | | | | | | | | | | The auxiliary utility ttyemu proved to be unreliable. Given existing differences between pty implementations and termios ioctls on various platforms, writing it in a portable way requires effort disproportional to its actual purpose. * configure.ac: Remove check for grantpt * gnulib.modules: Remove posix_openpt, ptsname, and unlockpt * tests/Makefile.am (TESTSUITE_AT): Remove iotty.at (check_PROGRAMS): Remove ttyemu. * tests/testsuite.at: Remove iotty.at * tests/iotty.at: Remove. * tests/ttyemu.c: Remove.
* xattrs: fix build on DarwinPavel Raiskup2016-04-052-32/+14
| | | | | | | | | | | | Be careful to define HAVE_XATTRS when not all needed xattr-related functions are properly defined either in libc or libattr. Reported independently by Denis Excoffier and Dominyk Tille. * acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): Check for each xattr function separately. Don't AC_CHECK_LIB (LIBS is filled by AC_SEARCH_LIBS when necessary). * src/Makefile.am: The LDADD -lattr was redundant.
* Remove --preserve optionSergey Poznyakoff2016-03-243-26/+17
| | | | | | * src/tar.c: Remove --preserve option * NEWS: Update. * doc/tar.texi: Update.
* Fix testcaseSergey Poznyakoff2016-03-241-2/+3
| | | | * tests/time02.at: Sort tar -d output
* Update THANKS fileSergey Poznyakoff2016-03-241-0/+3
|