[Logcheck-commits] CVS logcheck/src

CVS User maks-guest logcheck-devel@lists.alioth.debian.org
Mon, 17 May 2004 14:38:40 -0600


Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv18568/src

Modified Files:
	logcheck 
Log Message:

be more fhs compliant:
* first try /tmp, 
because it will be cleaned up on every reboot
* only try /var/tmp if /tmp dir on full partition


--- /cvsroot/logcheck/logcheck/src/logcheck	2004/05/17 15:15:44	1.28
+++ /cvsroot/logcheck/logcheck/src/logcheck	2004/05/17 20:38:40	1.29
@@ -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.28 2004/05/17 15:15:44 alfie Exp $
+# $Id: logcheck,v 1.29 2004/05/17 20:38:40 maks-guest Exp $
 
 
 # Set the umask
@@ -520,8 +520,8 @@
 fi
 
 # 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) \
+    || TMPDIR=$(mktemp -d -p /var/tmp logcheck.XXXXXXXX) \
     || error "Could not create temporary directory"
 
 # Now clean the rulefiles in the directories