[Logcheck-commits] r1616 - logcheck/branches/zugschlus200707/src
zugschlus at users.alioth.debian.org
zugschlus at users.alioth.debian.org
Fri Jul 27 18:14:52 UTC 2007
Author: zugschlus
Date: 2007-07-27 18:14:52 +0000 (Fri, 27 Jul 2007)
New Revision: 1616
Modified:
logcheck/branches/zugschlus200707/src/logtail2
Log:
more fixes
Modified: logcheck/branches/zugschlus200707/src/logtail2
===================================================================
--- logcheck/branches/zugschlus200707/src/logtail2 2007-07-27 18:11:27 UTC (rev 1615)
+++ logcheck/branches/zugschlus200707/src/logtail2 2007-07-27 18:14:52 UTC (rev 1616)
@@ -81,7 +81,7 @@
sub inode {
my ($filename) = @_;
my $inode = 0;
- unless (-e "$filename" && ($inode = ((stat($filename))[1])) ) {
+ unless (-e $filename && ($inode = ((stat($filename))[1])) ) {
print STDERR "Cannot get $filename inode: $!\n";
exit 65;
}
@@ -196,7 +196,7 @@
# update offset, unless test mode
unless ($TEST_MODE) {
- unless (open(OFFSET, ">$offsetfile")) {
+ unless (open(OFFSET, ">", $offsetfile)) {
print STDERR "File $offsetfile cannot be created. Check your permissions: $!\n";
exit 73;
}
More information about the Logcheck-commits
mailing list