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

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

tar-1.13 bug with -L switch?


From: james
Subject: tar-1.13 bug with -L switch?
Date: Sat, 21 Oct 2000 23:31:24 -0400 (EDT)

Hey, couldn't get tar-1.13 to work with -L switch until I changed the
following line:

src/tar.c:657
          if (xstrtoul (optarg, (char **) 0, 10, &u, "") != LONG_MAX)

to:
          if (xstrtoul (optarg, (char **) 0, 10, &u, ""))


xstrtoul returns 0 if the argument, optarg, is a number, and 1 or 2 if
it's not.  It never returns LONG_MAX.

-- 

James





reply via email to

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