Re: trnkill

Arnoud (galactus@stack.urc.tue.nl)
Wed, 11 Sep 1996 13:17:15 +0100

-----BEGIN PGP SIGNED MESSAGE-----

In article <ZBbNy4uYOp+B089yn@stack.urc.tue.nl>,
galactus@stack.urc.tue.nl (Arnoud "Galactus" Engelfriet) wrote:
> # Add this to your script to get support for multiple .newsrcs
> # Make sure it's at the top, before the confusing stuff starts

Sorry, there's a bad programming error in this script. It doesn't
save the specific newsrc file before restoring the "real" one.

It should be

if [ -s "$1" ] # File exists and isn't empty
then
name="$1"
else
if [ -s "$2" ] # To support -d switch for debug mode
then
name="$2"
fi
fi

if [ "$name" != "" ]
then
mv .newsrc newsrc.tmp
mv "$name" .newsrc
fi

# Add this to the very end of the script...

if [ "$name" != "" ]
then
mv .newsrc "$name"
mv newsrc.tmp .newsrc
fi

Galactus

- --
To find out more about PGP, send mail with HELP PGP in the SUBJECT line to me.
E-mail: galactus@stack.urc.tue.nl - Please PGP encrypt your mail if you can.
Finger galactus@turtle.stack.urc.tue.nl for public key (key ID 0x416A1A35).
Anonymity and privacy site: <http://www.stack.urc.tue.nl/~galactus/remailers/>

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: cp850

iQCVAgUBMjb+yjyeOyxBaho1AQHXjgP9F/j+rx74W0ZjE3EfqhyXvZxLSvpEcb12
b0SgGzWevCuL2YZ13YuFtYpJhN+paI1d2fPJSV/BFreDMDUA6q7m80Yw5O2qfcJX
s3dOANezbvWJkIL76Zf0MX+47JQ3M6RgWg1V6CUO/YmfvmQ/uzGnmtXxJcqCBiN0
9eF4YDgZHBY=
=riIa
-----END PGP SIGNATURE-----