uucp cleanup script

Bruce D. Becker bdb at becker.UUCP
Fri May 24 03:35:09 AEST 1991


in Amiga Unix System V Release 4, version 1.1, there
is a misfeature in the "uudemon.cleanup" script:

	SPOOL=/var/spool/uucp
	[...]
	cd $SPOOL
	if [ "`pwd`" != "$SPOOL" ]; then
		... mail error message to admin ...

This has been in the script for perhaps 5-6 years.

It breaks under SysVr4 because "/var/spool" is a
symbolic link to "/usr/spool"; when the cd is done,
the working directory is now "/usr/spool/uucp" (at
least according to /bin/sh - ksh should succeed).

The same problem exists for cd'ing to .Log directories,
since
	VAR=/var/uucp
	LOGDIR=$VAR/.Log
	[...]
		cd $LOGDIR/$i
		if [ "`pwd`" != "$LOGDIR/$i" ]; then
			... mail error message to admin ...

and "/var/uucp" is a symbolic link to "/usr/spool/uucp"...


-- 
  ,u,	 Bruce Becker	Toronto, Ontario
a /i/	 Internet: bdb at becker.UUCP, bruce at gpu.utcs.toronto.edu
 `\o\-e	 UUCP: ...!utai!mnetor!becker!bdb
 _< /_	 "It's the death of the net as we know it (and I feel fine)" - R.A.M.



More information about the Comp.unix.amiga mailing list