[Logcheck-commits] [logcheck] 01/01: s/logcheck-test: make mktemp usage more portable
Hannes von Haugwitz
hvhaugwitz at moszumanska.debian.org
Sun Dec 20 19:35:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
hvhaugwitz pushed a commit to branch master
in repository logcheck.
commit f005f31cd54a907adc8cb61888987d2ab3ab2480
Author: Hannes von Haugwitz <hannes at vonhaugwitz.com>
Date: Wed Dec 16 06:07:08 2015 +0100
s/logcheck-test: make mktemp usage more portable
---
debian/changelog | 7 +++++++
src/logcheck-test | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 106fb5b..fc3e3c4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+logcheck (1.3.18) UNRELEASED; urgency=medium
+
+ * src/logcheck-test:
+ - make mktemp usage more portable
+
+ -- Hannes von Haugwitz <hannes at vonhaugwitz.com> Wed, 16 Dec 2015 06:02:39 +0100
+
logcheck (1.3.17) unstable; urgency=low
[ Hannes von Haugwitz ]
diff --git a/src/logcheck-test b/src/logcheck-test
index 0254d5c..288fbb8 100755
--- a/src/logcheck-test
+++ b/src/logcheck-test
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright © 2007–2011 Hannes von Haugwitz <hannes at vonhaugwitz.com>
+# Copyright © 2007–2011,2015 Hannes von Haugwitz <hannes at vonhaugwitz.com>
# This file is part of Logcheck
@@ -176,7 +176,7 @@ elif ! [ -r "$FILE" ] ; then
exit 3
else
if [ -n "$RULEFILE" ] ; then
- CLEANRULE="$(mktemp --tmpdir logcheck-test.XXXXXXXXXX)"
+ CLEANRULE="$(mktemp "${TMPDIR:-/tmp}/logcheck-test.XXXXXXXXXX")"
cleanup() { rm -rf $CLEANRULE; }
egrep --text -v '^[[:space:]]*$|^#' "$RULEFILE" >> $CLEANRULE
sed -e 's/[[:space:]]*$//' $FILE | egrep $INVERT -f "$CLEANRULE"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/logcheck/logcheck.git
More information about the Logcheck-commits
mailing list