]> Dogcows Code - chaz/tar/blobdiff - src/tar.c
Fix multivolume archive creation when volume length=record size.
[chaz/tar] / src / tar.c
index cc11ba5810eba0e3c2799a76b254d80d44507e89..4680f4677f33f1aac85eff797bceba0cbd95aa68 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -2324,6 +2324,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.023533 seconds and 4 git commands to generate.