[1315] in SIPB_Linux_Development
xlogin and reactivate and syspacks
daemon@ATHENA.MIT.EDU (Salvatore Valente)
Sat May 4 23:55:15 1996
Date: Sat, 4 May 1996 23:54:49 -0400
To: linux-dev@MIT.EDU
From: Salvatore Valente <svalente@MIT.EDU>
1. My apologies for breaking the elf system packs for a few hours
tonight. I reinstalled xlogin, but the current .../lib/init/cshrc
depends on /bin/athena/makepath, which most people probably don't have
on their system. (See linux-dev[1218].) So, I've reverted
.../lib/init/cshrc, although there should be a good way to tell people
about new software for /bin/athena and /etc/athena.
2. On cutter-john, /etc/athena/rc.conf had "SYSTEM=Linux". This
doesn't match "LINUX", which confused this section of
/etc/athena/reactivate:
case "${SYSTEM}" in
...
LINUX|NetBSD)
correct stuff...
;;
*)
mv /tmp/.X11-unix /tmp/../.X11-unix
rm -rf /tmp/ > /dev/null 2>&1
mv /tmp/../.X11-unix /tmp/.X11-unix
;;
esac
As you can see, it was falling back to the default case, which makes
the really stupid assumption that "rm -rf /tmp/" will not remove the
/tmp directory, because there's a slash after it. This stupid
assumption is not true with gnu rm, so cutter lost the /tmp directory.
I've taken two steps to fix this:
1. I fixed rc.conf on cutter-john.
2. I changed the default case of reactivate to make as few
assumptions as possible. This is the new default case:
*)
rm -rf /tmp/*
;;
This means that dotfiles in /tmp will not be erased on default systems.
I don't consider this a problem.
-Sal.