X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Ftar.c;h=4680f4677f33f1aac85eff797bceba0cbd95aa68;hb=1d79c6734cfbd302e53358760b4c3fe3e7b9be61;hp=cc11ba5810eba0e3c2799a76b254d80d44507e89;hpb=c9a7297a8a135c0afd8f984b91578a822ba3b04c;p=chaz%2Ftar diff --git a/src/tar.c b/src/tar.c index cc11ba5..4680f46 100644 --- 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. */