Subject: backuppc: retrieving hostname
Package: backuppc
Version: 2.1.1-1
Severity: normal

Hostname retrieved in /etc/backuppc/config.pl on line:

  46 $Conf{ServerHost} = `hostname`;

contains a '\n' character, which may cause problems later on. Adding a:

  47 chomp($Conf{ServerHost});

should take care of that.

Another solution, if possible, might be to use a builtin:

  use Sys::Hostname;
  $host = hostname;


Cheers,
Cristian

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE= (charmap=ANSI_X3.4-1968)

Versions of packages backuppc depends on:
ii  adduser                       3.63       Add and remove users and groups
ii  apache                        1.3.33-4   versatile, high-performance HTTP s
ii  debconf                       1.4.46     Debian configuration management sy
ii  dpkg                          1.10.27    Package maintenance system for Deb
ii  libarchive-zip-perl           1.14-1     Module for manipulation of ZIP arc
ii  libcompress-zlib-perl         1.34-1     Perl module for creation and manip
ii  perl [libdigest-md5-perl]     5.8.4-8    Larry Wall's Practical Extraction
ii  perl-suid                     5.8.4-8    Runs setuid Perl scripts
ii  samba-common                  3.0.11-1   Samba common files used by both th
ii  smbclient                     3.0.11-1   a LanManager-like simple client fo
ii  tar                           1.14-2     GNU tar
ii  wwwconfig-common              0.0.43     Debian web auto configuration

-- debconf information:
  backuppc/configuration-note:
* backuppc/add-lines: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to