/usr/bin/cmp fails to perform according to the manual page cmp.1 in that nonzero values of skip1 and skip2 for the byte offsets results in an 'Invalid argument' error. This seems to be due to the fact that the mmap system call fails for non page aligned offsets. Also, only base r10 conversion is allowed whereas the manual page implies that octal and hexadecimal byte offsets can be entered. Fix: Apply the following patch to the sources in the /usr/src/usr.bin/cmp directory: How-To-Repeat: prompt% /usr/bin/cmp file1 file2 skip1 skip2 where skip1 and skip2 are nonzero byte offsets into file1 and file2 respectively.
See bin/3855 for a follow up patch incorporating elements of 3.0-CURRENT sources. ----- Jeffrey M. Metcalf metcalf@snet.net http://ruddles.stat.uconn.edu/~jeff
State Changed From-To: open->closed Argument conversion problem fixed, offset problem already taken care of.