Problem with DHCLIENT vs 64-bit time_t
des at des.no
Sun Feb 22 03:04:37 PST 2004
Garance A Drosihn <drosih at rpi.edu> writes:
> So, there definitely is something wrong with the dhclient from
> the base system But it might be that people having trouble with
> dhcp on 64-bTT sparc systems could use the port, at least for
> the short-term.
Only takes a few minutes of eyeballing to figure out that the problem
is most likely on line 424 of src/contrib/isc-dhcp/common/parse.c:
convert_num (cfile, (unsigned char *)timep, val, 10, 32);
idiotically, the final argument to convert_num() is supposed to be the
size in bits of the number to store in the location pointed to by the
second argument. The simplest fix is to use a temporary int32_t and
assign it to *timep later, since convert_num() can't deal with 64-bit
quantities. See attached (untested) patch.
Dag-Erling Smørgrav - des at des.no
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 842 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-sparc64/attachments/20040222/fe4abba7/dhclient.bin
More information about the freebsd-sparc64