[Logwatch] Problem with Sudo

Erik Ogan erik@ogan.net
Tue, 15 Apr 2003 18:36:41 -0500


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Erik Ogan wrote:
> 	2) In this particular case, you can change the "our (...)"
> 	   to "use vars(...)" which does (nearly) the same thing
> 	   less cleanly.  The file you'd need to change is:
> 		   <path to logwatch>/scripts/services/sudo

Oops, I'm at it again. It's been a long time. You need to change "our
(...)" to "use vars qw(...)" and remove the commas between the elements:

our ($Debug,  $Detail,  %byUser);

becomes

use vars qw($Debug $Detail %byUser);

That should allow sudo to run in Perl < 5.6.

- -e

- --
Erik R. Ogan                                    Mercenary Developer
PGP Key:         http://erik.ogan.net/PGP.txt            0 o . _O-d
PGP Fingerprint: A3DB 678A 4737 32E7 F703  DC3A 6BFE 2BBC 4F41 A371

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+nJeJa/4rvE9Bo3ERArp5AJ48Q2HXFwIxugDL/sv0mvAK2ad8pwCgg+jL
wFw9fq4G2RU+Ee8EnBxy7PA=
=J3/L
-----END PGP SIGNATURE-----