[3877] in bugtraq

home help back first fref pref prev next nref lref last post

Another tmpfile problem

daemon@ATHENA.MIT.EDU (Antti Andreimann)
Thu Jan 2 19:56:40 1997

Date: 	Sat, 28 Dec 1996 02:18:58 +0200
Reply-To: Antti Andreimann <anttix@cyberix.edu.ee>
From: Antti Andreimann <anttix@cyberix.edu.ee>
X-To:         netspace.org!bugtraq@cyberix.edu.ee
To: Multiple recipients of list BUGTRAQ <BUGTRAQ@NETSPACE.ORG>

Hi everybody !

There is a program called chklogs out there . Written by D. Emilio Grimaldo T.
(root@panama.iaehv.nl)
It's a pretty nice perl script that uses a config file for archiving or
taking other actions on logfiles if theyr size exesses a predefined
limit .
I used it since today , when I found a lame tempfile bug in it .
when called with -m switch (usually from crontab) it will mail the results to
administrator . /tmp/chklogs.out is used to compose a message .
So the program will gladly overwrite any file in the system .
I hate tempfiles !!!!!
FIX: Do not call chklogs with -m option or don't use it at all.

--
========================================================================

            \||||||||||/                    Antti Andreimann
          \||||||||||||||/                  nickname: Cyber
       \|||||||||||||||||\                  anttix@cyberix.edu.ee
       /||||||||||||||||0\__@     ______
       /|||||||||||||||||__/     (______)   Redistibution via Microsoft
        \||||||||||||||||/          {}      Network is prohibited.
(c)siil    L L       L L           _||_
========================================================================

home help back first fref pref prev next nref lref last post