Cron job uses hostname -f

Bug #973490 reported by luca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rkhunter (Ubuntu)
Fix Released
Undecided
François Marier

Bug Description

The cron job scripts use hostname -f, which shouldn't be used according to hostname(1):

       If a machine has multiple network interfaces/addresses or is used in a mobile environment, then it may either
       have multiple FQDNs/domain names or none at all. Therefore avoid using hostname --fqdn, hostname --domain and
       dnsdomainname. hostname --ip-address is subject to the same limitations so it should be avoided as well.

Revision history for this message
François Marier (fmarier) wrote :

This is fixed in the package I just pushed to Debian unstable (1.4.2-1).

Changed in rkhunter (Ubuntu):
status: New → Fix Committed
assignee: nobody → François Marier (fmarier)
Revision history for this message
luca (llucax) wrote :

I don't even remember why I reported this, but thank you! :-)

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

This bug was fixed in the package rkhunter - 1.4.2-1

---------------
rkhunter (1.4.2-1) unstable; urgency=medium

  * Make myself the uploader
  * Acknowledge my own NMUs (closes: #765351, #765912, #768396, #771477)

  * Recommend both unhide and unhide.rb (closes: #765901)
  * Recommend iproute2 instead of iproute (closes: #753717)
  * Drop recommends for test browsers (closes: #710582)
  * Promote lsof to depends and mailx to recommends
  * Drop tripwire and libdigest-whirlpool-perl from suggests

  * Better default configuration (closes: #765898)
  * Comment out lwp-request in the config file (closes: #773974, #783069)
  * Fix config entries for etckeeper (closes: #779702)
  * Fix NONE/none and ALL/all mess in config file (closes: #780903)
  * Suggest "ALLOWHIDDENDIR=/dev/.lxc" in config file (closes: #762877)

  * Use $(hostname) instead of $(hostname -f) in emails (LP: #973490)
  * Fix default values of cron vars in /etc/default/rkhunter (LP: #1011151)
  * Remove trailing whitespace in /etc/default/rkhunter (closes: #771620)

  * Bump Standards-Version up to 3.9.6
  * Bump debhelper compatibility to 9
  * Update lintian overrides to cover all new files
  * Use canonical VCS URLs
  * Fix blank line in package description
  * Update hash algorithm in package description
  * Add logcheck rules to filter out expected syslog messages

 -- Francois Marier <email address hidden> Sat, 25 Apr 2015 23:44:41 +1200

Changed in rkhunter (Ubuntu):
status: Fix Committed → 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.