Sergey Poznyakoff 19 年之前
父节点
当前提交
49f39c25b4
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. 7 0
      ChangeLog
  2. 13 0
      NEWS

+ 7 - 0
ChangeLog

@@ -1,5 +1,12 @@
 2005-09-28  Sergey Poznyakoff  <gray@gnu.org.ua>
 2005-09-28  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 
+	* NEWS: Updated
+	* src/common.h (show_stored_names_option): New variable
+	* src/list.c (print_header): If show_stored_names_option is given,
+	list member names as stored in the archive. Patch proposed by Erik
+	Cumps <erik.cumps@icos.be>
+	* src/tar.c: Implement --show-stored-names option
+
 	* src/common.h (test_label_option): New variable;
 	* src/common.h (test_label_option): New variable;
 	* src/list.c (print_header): Special handling if test_label_option
 	* src/list.c (print_header): Special handling if test_label_option
 	is set.
 	is set.

+ 13 - 0
NEWS

@@ -25,6 +25,19 @@ automatically. It is not necessary to give --null option.
 is useful e.g. for processing output from `find dir -print0'.
 is useful e.g. for processing output from `find dir -print0'.
 An orthogonal option --unquote is provided as well.
 An orthogonal option --unquote is provided as well.
 
 
+* New option --test-label tests the archive volume label.
+If an argument is specified, the label is compared against its value.
+Tar exits with code 0 if the two strings match, and with code 2 if
+they do not.
+
+If no argument is given, --verbose option is implied. In this case,
+tar prints the label name, if it is present and exits with code 0.
+
+* New option --show-stored-names. When creating archive in verbose mode,
+lists member names as stored in the archive, i.e. with any eventual
+prefixes removed. The option is useful, for example, while comparing
+`tar cv' and `tar tv' outputs.	
+
 * Better support for full-resolution time stamps.  Tar cannot restore
 * Better support for full-resolution time stamps.  Tar cannot restore
 time stamps to full nanosecond resolution, though, until the kernel
 time stamps to full nanosecond resolution, though, until the kernel
 guys get their act together and give us a system call to set file time
 guys get their act together and give us a system call to set file time