[1187] in NetBSD-Development
Athena login code changes
daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Tue Jan 9 00:02:36 1996
From: ghudson@MIT.EDU
Date: Tue, 9 Jan 1996 00:02:05 -0500
To: pc-dialup@MIT.EDU, sipb-athena@MIT.EDU
I've made two changes to the Athena login code:
* cleanup now forces updates, deleting lock files when
ALbeginFileUpdate() fails. This way, if a ptmp or gtmp file
gets left around on a dialup, it's only a problem for
fifteen minutes. This is how cleanup works in the stock
Athena code (although it doesn't use libAL, of course). The
idea is that since /etc/nologin has been present during the
ten seconds cleanup tried to acquire the lock file, if it
doesn't get the lock file within ten seconds something is
stuck.
* There was a pretty serious problem with my cleanup code;
when I added the capability to delete users from group lines
and to delete emptied-out group lines, I forgot about empty
system groups. I fixed cleanup to only delete emptied-out
group lines if it is first able to read all the entries in
/etc/group.local, and if the emptied-out group line does not
correspond to a local group.
I've installed these changes on ringworld, and disabled the
/etc/ptmp.pid and /etc/gtmp.pid debugging on ringworld.