OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Bugtraq archives for 4th quarter (Oct-Dec) 1996: Another tmpfile problem

Another tmpfile problem

Antti Andreimann (anttixcyberix.edu.ee)
Sat, 28 Dec 1996 02:18:58 +0200

Hi everybody !

There is a program called chklogs out there . Written by D. Emilio Grimaldo T.
(rootpanama.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
       \|||||||||||||||||\                  anttixcyberix.edu.ee
       /||||||||||||||||0\__     ______
       /|||||||||||||||||__/     (______)   Redistibution via Microsoft
        \||||||||||||||||/          {}      Network is prohibited.
(c)siil    L L       L L           _||_
========================================================================