logwatch replaces hostname with number

Bug #296349 reported by Nathan Crawford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logwatch (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: logwatch

Release: Ubuntu 8.10
Package version: 7.3.6.cvs20080702-1ubuntu2
Expected results: Hostname is displayed in the subject line of Logwatch emails. eg, "Logwatch for hostname (Linux)"
Actual results: If the system's hostname is one of the following keywords, it is replaced with an associated integer:
yes => 1
no => 0
true => 1
false => 0
on => 1
off => 0
high => 10
med => 5
medium => 5
low => 0

In my case, the server is called "medium" (as in small, medium, large), which gets replaced with "5".
I've attached a patch for logwatch.pl.

Related branches

Revision history for this message
Nathan Crawford (njcrawford) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package logwatch - 7.3.6.cvs20080702-1ubuntu3

---------------
logwatch (7.3.6.cvs20080702-1ubuntu3) jaunty; urgency=low

  * Fix logwatch.pl for servers that have the same hostname as a config
    variable (ie: medium). Thanks for Nathan Crawford. (LP: #296349)

 -- Chuck Short <email address hidden> Mon, 10 Nov 2008 16:46:59 +0000

Changed in logwatch:
status: New → Fix Released
Revision history for this message
Nathan Crawford (njcrawford) wrote :

Logwatch.pl in version 7.3.6.cvs20080702-1ubuntu3 has a typo around line 940:

> unless ($_ eq "hostname"} {

This causes syntax errors in the rest of the file.

The closing bracket for the unless statement should be a ")" (parentheses) instead of "}" (curly bracket).

Changed in logwatch:
status: Fix Released → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package logwatch - 7.3.6.cvs20080702-1ubuntu4

---------------
logwatch (7.3.6.cvs20080702-1ubuntu4) jaunty; urgency=low

  * Fix typo. (LP: #296349)

 -- Chuck Short <email address hidden> Wed, 03 Dec 2008 15:22:33 +0000

Changed in logwatch:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.