bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

--tape-length


From: Masashi NOGAWA
Subject: --tape-length
Date: Fri, 10 Nov 2000 10:29:08 +0900

NOTE
    This report has no relationship to my company.
    Please use "address@hidden" for my e-mail address
    in public use.

Problem
    When I was making disk images for CD-R on my HDD,
        tar --tape-length=650000 -cv --file=/home/xxx/image.tar /archive-source
    I could not use any number for '--tape-length' option.

Patch
    It seems we can use only the value "LONG_MAX" for '--tape-length'.
    I'm not sure what intended to check at the line...,
    but " != " is wrong, I think.

---- cut here --------------------------------------------------

*** tar.c       Fri Nov 10 10:04:52 2000
--- tar.c.ORIG  Tue Aug  3 13:49:13 1999
***************
*** 655,665 ****
        break;
  
        case 'L':
        {
          unsigned long u;
!         if (xstrtoul (optarg, (char **) 0, 10, &u, "") >= LONG_MAX)
            USAGE_ERROR ((0, 0, _("Invalid tape length")));
          clear_tarlong (tape_length_option);
          add_to_tarlong (tape_length_option, u);
          mult_tarlong (tape_length_option, 1024);
          multi_volume_option = 1;
--- 652,662 ----
        break;
  
        case 'L':
        {
          unsigned long u;
!         if (xstrtoul (optarg, (char **) 0, 10, &u, "") != LONG_MAX)
            USAGE_ERROR ((0, 0, _("Invalid tape length")));
          clear_tarlong (tape_length_option);
          add_to_tarlong (tape_length_option, u);
          mult_tarlong (tape_length_option, 1024);
          multi_volume_option = 1;

---- cut here --------------------------------------------------

Best regards,
                                           M. Nogawa, mailto:address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]