BusyBox 1.3.0 ar/dpkg is broken
Kim B. Heino
Kim.Heino at bluegiga.com
Thu Dec 14 14:16:39 UTC 2006
Hello,
The new xstrtoul() and xatou() functions broke ar and dpkg commands in
BusyBox 1.3.0:
dpkg: invalid number '100644 4 <binary garbage removed>
This is because get_header_ar() function is passing the binary header:
typed->mode = xstrtoul(ar.formatted.mode, 8);
typed->mtime = xatou(ar.formatted.date);
...
typed->size = xatoul(ar.formatted.size);
One way to fix this is to add strtoul's endptr parameter to xstrtoul()
too. Another way is to use some other functions in get_header_ar() to
parse header.
Any suggestions?
More information about the busybox
mailing list