[Logcheck-commits] Kerstin Puschke: logcheck cd's to $STATEDIR before cleaning up temp dir

Hannes von Haugwitz hvh-guest at alioth.debian.org
Mon Apr 12 06:55:42 UTC 2010


Module: logcheck
Branch: master
Commit: 702d1d94105b2a9a38326068195677bbf50e27da
URL:    http://git.debian.org/?p=logcheck/logcheck.git;a=commit;h=702d1d94105b2a9a38326068195677bbf50e27da

Author: Kerstin Puschke <kpuschke at zedat.fu-berlin.de>
Date:   Mon Apr 12 08:28:21 2010 +0200

logcheck cd's to $STATEDIR before cleaning up temp dir

Now you can run logcheck as a user who has no permissions for /var/lib/logcheck (where logcheck used to cd to)

Signed-off-by: Kerstin Puschke <kpuschke at zedat.fu-berlin.de>
Signed-off-by: Hannes von Haugwitz <hannes at vonhaugwitz.com>

---

 src/logcheck |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/logcheck b/src/logcheck
index 2bc0995..3622f95 100755
--- a/src/logcheck
+++ b/src/logcheck
@@ -108,7 +108,7 @@ cleanup() {
     if [ -d "$TMPDIR" ]; then
         # Remove the tmp directory
         if [ "$NOCLEANUP" -eq 0 ];then
-	    cd /var/lib/logcheck
+	    cd $STATEDIR
 	    debug "cleanup: Removing - $TMPDIR"
 	    rm -r "$TMPDIR"
         else




More information about the Logcheck-commits mailing list