]> Dogcows Code - chaz/tar/blobdiff - src/tar.c
ChangeLog
[chaz/tar] / src / tar.c
index cc11ba5810eba0e3c2799a76b254d80d44507e89..67bb0be7816eed29dabfea111e8f33aa2f79c24f 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -1042,6 +1042,9 @@ report_textual_dates (struct tar_args *args)
 \f
 static volatile int _argp_hang;
 
+/* Either NL or NUL, as decided by the --null option.  */
+static char filename_terminator;
+
 enum read_file_list_state  /* Result of reading file name from the list file */
   {
     file_list_success,     /* OK, name read successfully */
@@ -2324,6 +2327,9 @@ decode_options (int argc, char **argv)
   else if (utc_option)
     verbose_option = 2;
 
+  if (tape_length_option && tape_length_option < record_size)
+    USAGE_ERROR ((0, 0, _("Volume length cannot be less than record size")));
+  
   /* Forbid using -c with no input files whatsoever.  Check that `-f -',
      explicit or implied, is used correctly.  */
 
This page took 0.025718 seconds and 4 git commands to generate.