[Logcheck-commits] CVS logcheck/src
CVS User maks-guest
logcheck-devel@lists.alioth.debian.org
Sat, 15 May 2004 03:52:47 -0600
Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv28425/src
Modified Files:
logcheck
Log Message:
my stupid patch for allowing mktemp in /tmp had an unexpected behaviour:
* it does first a mktemp in /var/temp that we happily ignore.
so we have now for 1.2.20 many /var/tmp/logcheck.XXXXX dirs.
sorry, but bad review ;)
--- /cvsroot/logcheck/logcheck/src/logcheck 2004/05/15 08:41:08 1.25
+++ /cvsroot/logcheck/logcheck/src/logcheck 2004/05/15 09:52:47 1.26
@@ -22,7 +22,7 @@
# along with Logcheck; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-# $Id: logcheck,v 1.25 2004/05/15 08:41:08 ttroxell Exp $
+# $Id: logcheck,v 1.26 2004/05/15 09:52:47 maks-guest Exp $
# Set the umask
@@ -521,7 +521,7 @@
# Create the secure temporary directory or exit
TMPDIR=$(mktemp -d -p /var/tmp logcheck.XXXXXXXX) \
-TMPDIR=$(mktemp -d -p /tmp logcheck.XXXXXXXX) \
+ || TMPDIR=$(mktemp -d -p /tmp logcheck.XXXXXXXX) \
|| error "Could not create temporary directory"
# Now clean the rulefiles in the directories