rcs blows up on suns
Guy Harris
guy at sun.uucp
Mon Sep 9 08:28:33 AEST 1985
> As I stated in my original reply, dereferencing zero is always
> a bad idea, even though it `works' (returns 0) on Vaxen. So,
> it isn't Sun's fault per se, and I don't think RCS is really
> a supported product of Sun Microsystems... (anyone from Sun
> care to comment on this?).
RCS is not a supported product of Sun Microsystems. SMI doesn't distribute
RCS on any of its standard distribution tapes.
Here's a fix to "rcs.c" to keep it from dropping core (this fix was
originally discovered on another 68000-family machine which prohibits
dereferencing null pointers):
*** rcs.c.broken Sun Sep 8 15:25:18 1985
--- rcs.c Sun Sep 8 15:26:51 1985
***************
*** 982,988
dummy.nextlock=next=Locks;
trail = &dummy;
while (next!=nil) {
! numr = strcmp(num, next->delta->num);
if ((whor=strcmp(who,next->login))==0 &&
(num==nil || numr==0))
break; /* found a lock */
--- 982,989 -----
dummy.nextlock=next=Locks;
trail = &dummy;
while (next!=nil) {
! if(num!=nil)
! numr = strcmp(num, next->delta->num);
if ((whor=strcmp(who,next->login))==0 &&
(num==nil || numr==0))
break; /* found a lock */
Guy Harris
More information about the Comp.unix
mailing list