[1301] in Athena Bugs
(VS2000) Version 6.0R: co doesn't sanity check login info
daemon@ATHENA.MIT.EDU (Mark W. Eichin)
Thu Nov 3 00:33:00 1988
Date: Thu, 3 Nov 88 00:32:37 EST
From: Mark W. Eichin <eichin@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System type, version: (VS2000) Version 6.0R
System name: kremvax
What's wrong:
If a user gets deleted from /etc/passwd while they're still logged in,
then tries to use RCS and `co -l' the file, co says `locking file' and
then dumps core in an fprintf() in putadmin() in main() because
Locks->login has the value 0x43110f00 (or *(0), on the VAX anyway...)
probably because a getpwnam or getlogin failed earlier in the code.
The crash is at line 376 of rcssyn.c.
[thanks to Rich Pito <rap> for getting bitten and asking about it...]
What should have happened:
co should check the return values from get*.
Users should not disappear from /etc/passwd. (see [1300])
Mark Eichin
<eichin@athena.mit.edu>
SIPB Member & Project Athena ``Watchmaker''