From 706bd019158e8e1213520b1de521eab83332762d Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 24 Jan 2010 22:33:57 +0200 Subject: [PATCH] Minor change. * NEWS: Update. * doc/tar.texi: Update. * src/create.c (finish_header): Minor change. --- NEWS | 14 ++++++++++---- doc/tar.texi | 31 ++++++++++++++++++++++++------- src/create.c | 6 ++---- 3 files changed, 36 insertions(+), 15 deletions(-) diff --git a/NEWS b/NEWS index 7624d80..091df94 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -GNU tar NEWS - User visible changes. 2009-10-07 +GNU tar NEWS - User visible changes. 2010-01-24 Please send GNU tar bug reports to @@ -28,6 +28,9 @@ messages are suppressed. For example, suppresses the output of `A lone zero block' diagnostics, which is normally issued if `archive' ends with a single block of zeros. +See Tar Manual, section 3.9 "Controlling Warning Messages", for a +detailed discussion. + * New command line option `--level' The `--level=N' option sets the incremental dump level N. It @@ -77,10 +80,10 @@ the Epoch or a `Time reference' (see below). * Time references in --pax-option argument. Any value from the --pax-option argument that is enclosed in a pair -of curly braces. In that case, the string between the braces is -understood either as a textual time representation, as described in +of curly braces represents a time reference. The string between the +braces is understood either as a textual time representation, as described in chapter 7, "Date input formats", of the Tar manual, or as a name of -the existing file, starting with `/' or `.'. In the latter +an existing file, starting with `/' or `.'. In the latter case, the value is replaced with the modification time of that file. * Bugfixes @@ -90,6 +93,9 @@ case, the value is replaced with the modification time of that file. ** Correctly restore modes and permissions on existing directories. ** The --remove-files option removes the files only if they were succesfully stored in the archive. +** Fix storing and listing of the volume labels in POSIX format. +** Improve algorithm for splitting long file names (ustar +format). version 1.22 - Sergey Poznyakoff, 2009-03-05 diff --git a/doc/tar.texi b/doc/tar.texi index 1102e32..9a8b171 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -2572,6 +2572,10 @@ during archive creation, it is order sensitive. @xref{directory}. When performing operations, @command{tar} will skip files that match @var{pattern}. @xref{exclude}. +@opsummary{exclude-backups} +@item --exclude-backups +Exclude backup and lock files. @xref{exclude,, exclude-backups}. + @opsummary{exclude-from} @item --exclude-from=@var{file} @itemx -X @var{file} @@ -2585,7 +2589,7 @@ patterns in the file @var{file}. @xref{exclude}. Exclude from dump any directory containing a valid cache directory tag file, but still dump the directory node and the tag file itself. -@xref{exclude}. +@xref{exclude,, exclude-caches}. @opsummary{exclude-caches-under} @item --exclude-caches-under @@ -2605,19 +2609,20 @@ tag file. @xref{exclude}. @item --exclude-tag=@var{file} Exclude from dump any directory containing file named @var{file}, but -dump the directory node and @var{file} itself. @xref{exclude}. +dump the directory node and @var{file} itself. @xref{exclude,, exclude-tag}. @opsummary{exclude-tag-under} @item --exclude-tag-under=@var{file} Exclude from dump the contents of any directory containing file -named @var{file}, but dump the directory node itself. @xref{exclude}. +named @var{file}, but dump the directory node itself. @xref{exclude,, +exclude-tag-under}. @opsummary{exclude-tag-all} @item --exclude-tag-all=@var{file} Exclude from dump any directory containing file named @var{file}. -@xref{exclude}. +@xref{exclude,,exclude-tag-all}. @opsummary{exclude-vcs} @item --exclude-vcs @@ -2625,7 +2630,7 @@ Exclude from dump any directory containing file named @var{file}. Exclude from dump directories and files, that are internal for some widely used version control systems. -@xref{exclude}. +@xref{exclude,,exclude-vcs}. @opsummary{file} @item --file=@var{archive} @@ -7068,6 +7073,7 @@ which is difficult to catch using text editors. However, empty lines are OK. +@table @option @cindex version control system, excluding files @cindex VCS, excluding files @cindex SCCS, excluding files @@ -7079,13 +7085,11 @@ However, empty lines are OK. @cindex Arch, excluding files @cindex Mercurial, excluding files @cindex Darcs, excluding files -@table @option @opindex exclude-vcs @item --exclude-vcs Exclude files and directories used by following version control systems: @samp{CVS}, @samp{RCS}, @samp{SCCS}, @samp{SVN}, @samp{Arch}, @samp{Bazaar}, @samp{Mercurial}, and @samp{Darcs}. -@end table As of version @value{VERSION}, the following files are excluded: @@ -7111,6 +7115,19 @@ As of version @value{VERSION}, the following files are excluded: @item @file{_darcs} @end itemize +@opindex exclude-backups +@item --exclude-backups +Exclude backup and lock files. This option causes exclusion of files +that match the following shell globbing patterns: + +@table @asis +@item .#* +@item *~ +@item #*# +@end table + +@end table + @findex exclude-caches When creating an archive, the @option{--exclude-caches} option family causes @command{tar} to exclude all directories that contain a @dfn{cache diff --git a/src/create.c b/src/create.c index 748f274..209e428 100644 --- a/src/create.c +++ b/src/create.c @@ -996,11 +996,9 @@ finish_header (struct tar_stat_info *st, && header->header.typeflag != XHDTYPE && header->header.typeflag != XGLTYPE) { - /* FIXME: These globals are parameters to print_header, sigh. */ - - current_header = header; + /* FIXME: This global is used in print_header, sigh. */ current_format = archive_format; - print_header (st, current_header, block_ordinal); + print_header (st, header, block_ordinal); } header = write_extended (false, st, header); -- 2.44.0