[Logcheck-commits] r1444 - in logcheck/trunk: debian src

madduck at users.alioth.debian.org madduck at users.alioth.debian.org
Sun Jan 14 14:24:10 CET 2007


Author: madduck
Date: 2007-01-14 14:24:09 +0100 (Sun, 14 Jan 2007)
New Revision: 1444

Modified:
   logcheck/trunk/debian/changelog
   logcheck/trunk/src/logcheck
Log:
* logcheck now chdir()s to $HOME before cleanup of the temporary directory.
  This should hopefully fix some of the "Check temporary directory"
  messages.

Modified: logcheck/trunk/debian/changelog
===================================================================
--- logcheck/trunk/debian/changelog	2007-01-12 10:46:36 UTC (rev 1443)
+++ logcheck/trunk/debian/changelog	2007-01-14 13:24:09 UTC (rev 1444)
@@ -1,4 +1,4 @@
-logcheck (1.2.53~unreleased.5) unstable; urgency=low
+logcheck (1.2.53~unreleased.6) unstable; urgency=low
 
   * violations.ignore.d/logcheck-postfix: ignore entries for messages
     bounced/deferred by the LDA.
@@ -53,6 +53,10 @@
   * ignore.d.server/saned: also ignore access granted messages for other
     usernames.
 
+  * logcheck now chdir()s to $HOME before cleanup of the temporary directory.
+    This should hopefully fix some of the "Check temporary directory"
+    messages.
+
  -- martin f. krafft <madduck at debian.org>  Fri, 12 Jan 2007 11:46:10 +0100
 
 logcheck (1.2.52) unstable; urgency=low

Modified: logcheck/trunk/src/logcheck
===================================================================
--- logcheck/trunk/src/logcheck	2007-01-12 10:46:36 UTC (rev 1443)
+++ logcheck/trunk/src/logcheck	2007-01-14 13:24:09 UTC (rev 1444)
@@ -106,7 +106,8 @@
     if [ -d $TMPDIR ]; then
         # Remove the tmp directory
         if [ $NOCLEANUP -eq 0 ];then 
-    	    debug "Cleanup: Removing - $TMPDIR" 
+    	    cd
+    	    debug "cleanup: Removing - $TMPDIR" 
     	    rm -r $TMPDIR
         else
     	    debug "cleanup: Not removing - $TMPDIR"
@@ -164,8 +165,8 @@
 Details:
 $message
 
-Check temporary directory: $TMPDIR
-
+${TMPDIR:+Check temporary directory: $TMPDIR
+}
 Also verify that the logcheck user can read all files referenced in
 /etc/logcheck/logcheck.logfiles!
 




More information about the Logcheck-commits mailing list