[Logcheck-commits] Frédéric Brière : logtail/ logtail2 no longer ignore -o when called with only one argument
Frédéric Brière
fbriere-guest at alioth.debian.org
Sat Aug 22 17:47:45 UTC 2009
Module: logcheck
Branch: master
Commit: 69dd193a18e71df9befa7caeed648d36ac1ba962
URL: http://git.debian.org/?p=logcheck/logcheck.git;a=commit;h=69dd193a18e71df9befa7caeed648d36ac1ba962
Author: Frédéric Brière <fbriere at fbriere.net>
Date: Sat Aug 22 13:47:23 2009 -0400
logtail/logtail2 no longer ignore -o when called with only one argument
This closes: #453309
---
debian/changelog | 2 ++
src/logtail | 1 +
src/logtail2 | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index ec4c01c..0f932be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -51,6 +51,8 @@ logcheck (1.3.4) experimental; urgency=low
* ignore.d.workstation/kernel:
- adjusted sd "hardware sectors" rule for 2.6.28 (closes: #542390)
- further adjusted that rule for 2.6.31-rc1
+ * logtail/logtail2 no longer ignore -o when called with only one argument
+ (closes: #453309)
-- Frédéric Brière <fbriere at fbriere.net> Mon, 17 Aug 2009 11:48:08 -0400
diff --git a/src/logtail b/src/logtail
index 64cb409..9b9e5a2 100755
--- a/src/logtail
+++ b/src/logtail
@@ -35,6 +35,7 @@ if (!$opts{f} && $#ARGV != 0 && $#ARGV != 1) {
exit 66;
} elsif ($#ARGV == 0) {
$logfile = $ARGV[0];
+ $offsetfile = $opts{o};
} elsif ($#ARGV == 1) {
($logfile, $offsetfile) = ($ARGV[0], $ARGV[1]);
} else {
diff --git a/src/logtail2 b/src/logtail2
index ae04a11..dad1e30 100755
--- a/src/logtail2
+++ b/src/logtail2
@@ -36,6 +36,7 @@ if (!$opts{f} && $#ARGV != 0 && $#ARGV != 1) {
exit 66;
} elsif ($#ARGV == 0) {
$logfile = $ARGV[0];
+ $offsetfile = $opts{o};
} elsif ($#ARGV == 1) {
($logfile, $offsetfile) = ($ARGV[0], $ARGV[1]);
} else {
More information about the Logcheck-commits
mailing list