Inode Bug Fix for ISC 2.2.1

Larry Jones scjones at thor.UUCP
Fri Jan 18 02:09:28 AEST 1991


It has been brought to my attention that the fix I posted for the
inode bug in ISC 2.2 does not work for ISC 2.2.1.  Heiko Blume was
kind enough to send me a copy of the file and after a little digging
I have determined that the relevent code has not changed for 2.2.1
(so the bug still exists in 2.2.1) and is even in the same place in
the Driver.o file, but changes to other routines have changed the
checksums.  The following patch is thus the same as the 2.2 patch
except for the different checksums.

# ----- cut here -----
:
in=/etc/conf/pack.d/s5/Driver.o
out=/tmp/Driver.o

# check that we have the right Driver.o file

if [ x"`sum $in`" != x"30589 96 $in" ]; then
	echo "sum failed"
	exit 1
fi
if [ x"`sum -r $in`" != x"17287    96 $in" ]; then
	echo "sum -r failed"
	exit 1
fi

# copy the file and make an appropriate fix

{
	dd ibs=1 obs=1k count=2141
	dd bs=9 count=1 of=/dev/null
	echo '\0353\0007\0220\0220\0220\0220\0220\0220\0220\c'
	dd bs=16k
} <$in >$out

# compare the list of differences against the expected differences

cat <<\+ >/tmp/fix$$
  2142 146 353
  2143 307   7
  2144 207 220
  2145 326 220
  2146   0 220
  2147   0 220
  2148   0 220
  2149   0 220
  2150   0 220
+
if cmp -l $in $out | cmp -s - /tmp/fix$$; then
	rm /tmp/fix$$
	exit 0
else
	rm /tmp/fix$$
	echo "patch failed"
	exit 1
fi
----
Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
Domain: scjones at thor.UUCP  Path: uunet!sdrc!thor!scjones
Ever notice how tense grown-ups get when they're recreating? -- Calvin



More information about the Comp.unix.sysv386 mailing list