sum(1) for machine-independent chksum: bad

gam gam at amdahl.UUCP
Fri Jan 18 15:35:45 AEST 1985


Some version of a shar-type program out there is using
sum(1) to examine the unshar-ed files, comparing it to
the sum of the files at the machine of origin.

In 4.2 the sum is taken modulo BUFSIZ (from stdio.h) while
in SVR2 it is taken modulo BUFSIZE (defined in sum.c as 512).

Great, huh?

So let's all agree to do it with 512 or not use sum(1) for
machine-independent checksumming.

Thank you.
-- 
Gordon A. Moffett		...!{ihnp4,hplabs,sun}!amdahl!gam



More information about the Comp.unix mailing list