Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!tmsoft!becker!bdb From: bdb@becker.UUCP (Bruce D. Becker) Newsgroups: comp.unix.amiga Subject: uucp cleanup script Message-ID: <104374@becker.UUCP> Date: 23 May 91 17:35:09 GMT Organization: G. T. S., Toronto, Ontario, Canada Lines: 34 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@becker.UUCP, bruce@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.