[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#501005: marked as done (invoking hostname as domainname does not produce results described in --help)

Your message dated Mon, 14 Sep 2009 07:47:12 +0000
with message-id <E1Mn6HI-0001D5-Uf@ries.debian.org>
and subject line Bug#501005: fixed in hostname 2.97
has caused the Debian Bug report #501005,
regarding invoking hostname as domainname does not produce results described in --help
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

501005: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501005
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: hostname
Version: 2.93
Severity: normal

*** Please type your report below this line ***
According to 'hostname --help', invoking hostname as domainname should display the NIS/YP domain name, instead the host name is displayed. Transcript follows:

$ hostname
$ hostname -y
$ ln -s /bin/hostname domainname
$ ./domainname

Output of 'hostname --help':

$ hostname --help
Usage: hostname [-v] {hostname|-F file}      set host name (from file)
      domainname [-v] {nisdomain|-F file}   set NIS domain name (from file)
      hostname [-v] [-d|-f|-s|-a|-i|-y]     display formated name
      hostname [-v]                         display host name

      hostname -V|--version|-h|--help       print info and exit

   dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y

   -s, --short           short host name
   -a, --alias           alias names
   -i, --ip-address      addresses for the host name
   -f, --fqdn, --long    long host name (FQDN)
   -d, --domain          DNS domain name
   -y, --yp, --nis       NIS/YP domain name
   -F, --file            read host name or NIS domain name from given file

  This command can get or set the host name or the NIS domain name. You can
  also get the DNS domain or the FQDN (fully qualified domain name).
  Unless you are using bind or NIS for host lookups you can change the
  FQDN (Fully Qualified Domain Name) and the DNS domain name (which is
  part of the FQDN) in the /etc/hosts file.

As some commercial packages expect the NIS/YP domain name, I suggest inserting the following lines in hostname.c:

   if (!strcmp(progname, "domainname"))
       type = NIS;

immediately below the lines:

   if (!strcmp(progname, "dnsdomainname"))
       type = DNS;

Alternatively, the help text should be updated to match the current behavior.

-- System Information:
Debian Release: 4.0
 APT prefers stable
 APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)

Versions of packages hostname depends on:
ii  libc6                  2.3.6.ds1-13etch7 GNU C Library: Shared libraries

hostname recommends no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: hostname
Source-Version: 2.97

We believe that the bug you reported is fixed in the latest version of
hostname, which is due to be installed in the Debian FTP archive:

  to pool/main/h/hostname/hostname_2.97.dsc
  to pool/main/h/hostname/hostname_2.97.tar.gz
  to pool/main/h/hostname/hostname_2.97_amd64.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 501005@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Michael Meskes <meskes@debian.org> (supplier of updated hostname package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.8
Date: Sun, 13 Sep 2009 14:34:13 +0200
Source: hostname
Binary: hostname
Architecture: source amd64
Version: 2.97
Distribution: unstable
Urgency: low
Maintainer: Debian Hostname Team <hostname-devel@lists.alioth.debian.org>
Changed-By: Michael Meskes <meskes@debian.org>
 hostname   - utility to set/show the host name or domain name
Closes: 390527 420053 483221 501005 535467 540774 543666 543892
 hostname (2.97) unstable; urgency=low
   * New maintainer, closes: #543892
   * Bumped Standards-Version to 3.8.3, no changes needed.
   * Do not print trailing blank for option "-a", closes: #390527
   * Refer to correct init file, closes: #540774
   * Applied patch by Scott James Remnant <scott@ubuntu.com> to take care of an
     empty or non existant /etc/hostname, closes: #543666
   * Made package description and manpage clearer, closes: #483221
   * Added patch by Michael Stapelberg <michael+db20090501@stapelberg.de> to
     better cope with IPv6, closes: #535467
   * Added nisdomainname/ypdomainname, closes: #501005
   * Strip domain name returned by gethostname(), closes: #420053
 80b7f370969757c60338195dda672aa6561f14a4 804 hostname_2.97.dsc
 513b7f9205f3365764f75c89411a7d8445e62edf 10582 hostname_2.97.tar.gz
 6b66d29386460976020a53d938c1a025363c2909 13386 hostname_2.97_amd64.deb
 ca107b31815797d9bbb045b20b9cf4bfb835a11747720635b662e1aaddf1ecb5 804 hostname_2.97.dsc
 ae182be8403412e798f29430a384a8c2c25570abd6fc619efbab4a06f90891de 10582 hostname_2.97.tar.gz
 330d2c73d52e6a6bbf6be56c0f165180e0e43cd1fc5e9ec43b1c9be317e7a993 13386 hostname_2.97_amd64.deb
 b160f8ad93cf8fcff2d7d8782f510cf0 804 admin required hostname_2.97.dsc
 e510efc5a55f29ae644dc1aeee51f205 10582 admin required hostname_2.97.tar.gz
 d7be580e0e1dd55e09f557645726bcf7 13386 admin required hostname_2.97_amd64.deb

Version: GnuPG v1.4.10 (GNU/Linux)


--- End Message ---

Reply to: