Subject: UUCP lockfile dir wrong in /etc/rc
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Mike Long <mike.long@analog.com>
List: current-users
Date: 03/17/1994 16:54:14
I was just looking at /etc/rc (rcsid version 1.34), and I noticed the
following line under "clean up left-over files".

rm -f /var/spool/uucp/LCK.*

This is wrong, since NetBSD uses /var/spool/lock for UUCP lockfiles
(cf. /usr/src/gnu/libexec/uucp/common-sources/policy.h).
It should be replaced with:

rm -f /var/spool/lock/LCK.*

You'll be bit by this bug if you do the following:

1) start tip or cu (anything that creates a lockfile)
2) ^Z out and kill the tip/cu process (lockfile left behind)
3) reboot.

Rebooting should clear out stale lockfiles, but doesn't.
-- 
Mike Long                                         Mike.Long@Analog.com
VLSI Design Engineer                              voice: (617)461-4030
Analog Devices, SPD Div.                            FAX: (617)461-3010
Norwood, MA 02062                            *this = !opinion(Analog);

------------------------------------------------------------------------------