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

Bug#366890: marked as done (gnats: refuses to accept connections)



Your message dated Wed, 24 Feb 2010 21:35:54 +0000
with message-id <E1NkOte-0002Kj-62@ries.debian.org>
and subject line Bug#366890: fixed in gnats 4.1.0-1
has caused the Debian Bug report #366890,
regarding gnats: refuses to accept connections
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
immediately.)


-- 
366890: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366890
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gnats
Version: 4.1.0-0
Severity: important
Tags: patch


After installing gnats, I discovered that any attempts to connect to the
gnatsd resulted in two log file entries in syslog that look like this:
May 11 15:23:34 gaia gnatsd[13743]: connect from ::ffff:192.168.19.254 (::ffff:192.168.19.254)
May 11 15:23:34 gaia gnatsd[13743]: ?: bad address family 10 

Upon looking up where this line came from, it appears to be because the
incoming socket is being treated as if it is AF_INET6 rather than
AF_INET, which is what gnatsd is expecting.  I conclude that this is
happening on my system because it is set up with IPv6 addresses as well
as IPv4 addresses.

I have patched my local copy to accept connections with an address
family of AF_INET6 and to look the name up properly.  If I can figure
out how to do it, I'll attach the patch.

-- System Information:
Debian Release: testing/unstable
  APT prefers hoary-backports
  APT policy: (500, 'hoary-backports'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages gnats depends on:
ii  debconf                       1.5.0      Debian configuration management sy
ii  debianutils                   2.16       Miscellaneous utilities specific t
ii  exim [mail-transport-agent]   3.36-18    An MTA (Mail Transport Agent)
ii  gnats-user                    4.1.0-0    The GNU problem report management 
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries

gnats recommends no packages.

-- no debconf information
diff -Naur gnats-4.1.0/gnats/gnatsd.c gnats-4.1.0-new/gnats/gnatsd.c
--- gnats-4.1.0/gnats/gnatsd.c	2005-02-24 14:22:46.000000000 -0600
+++ gnats-4.1.0-new/gnats/gnatsd.c	2006-05-11 16:17:10.000000000 -0500
@@ -287,7 +287,7 @@
 
 /*  */
 static char *
-get_name (struct in_addr *host)
+get_name (struct in_addr *host, int type)
 {
   char *buf;
   int i;
@@ -296,7 +296,7 @@
   char **pp;
 #endif
 
-  hp = gethostbyaddr ((char *) host, sizeof (*host), AF_INET);
+  hp = gethostbyaddr ((char *) host, sizeof (*host), type);
   if (hp == NULL)
     {
       return NULL;
@@ -617,7 +617,7 @@
     }
   else
     {
-      if (s.sin_family != AF_INET)
+      if ((s.sin_family != AF_INET) && (s.sin_family != AF_INET6))
 	{
 	  syslog (LOG_ERR, "%s: bad address family %ld",
 		  "?", (long) s.sin_family);
@@ -628,7 +628,7 @@
       else
 	{
 	  current_addr = (char *) inet_ntoa (s.sin_addr);
-	  current_host = get_name (&s.sin_addr);
+	  current_host = get_name (&s.sin_addr, s.sin_family);
 	  if (current_host == NULL)
 	    {
 	      current_host = current_addr;

--- End Message ---
--- Begin Message ---
Source: gnats
Source-Version: 4.1.0-1

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

gnats-user_4.1.0-1_amd64.deb
  to main/g/gnats/gnats-user_4.1.0-1_amd64.deb
gnats_4.1.0-1.diff.gz
  to main/g/gnats/gnats_4.1.0-1.diff.gz
gnats_4.1.0-1.dsc
  to main/g/gnats/gnats_4.1.0-1.dsc
gnats_4.1.0-1_amd64.deb
  to main/g/gnats/gnats_4.1.0-1_amd64.deb



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

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

Debian distribution maintenance software
pp.
Ralf Treinen <treinen@debian.org> (supplier of updated gnats 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)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 24 Feb 2010 21:34:41 +0100
Source: gnats
Binary: gnats-user gnats
Architecture: source amd64
Version: 4.1.0-1
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Ralf Treinen <treinen@debian.org>
Description: 
 gnats      - The GNU problem report management system (central database)
 gnats-user - The GNU problem report management system (client tools)
Closes: 366890 484001 558207
Changes: 
 gnats (4.1.0-1) unstable; urgency=low
 .
   * QA upload
   * Run "autoreconf -vfi" to fix compilation on GNU/kFreeBSD, thanks to
     Cyril Brulebois for the patch (closes:  #558207).
   * Applied to the file gnats/gnatsd.c the diff between gnats upstream cvs
     versions 1.51 and 1.52. This should make it safe for ipv6 addresses.
     Thanks to Jonathan Guthrie for the patch (closes: #366890).
   * Install manual and FAQ into the gnats package by doc-base, using
     doc-base files submitted by Esteban Manchado Velázquez (thanks!), but
     setting section to "Project Management". Remove direct dhelp stuff in
     postinst and debian/rules. (closes: #484001)
   * Installation of info documents:
     - depend on dpkg (>= 1.15.4) | install-info
     - remove explicit invocation of install-info from postint
Checksums-Sha1: 
 ed344bfa8c4e5da8468267a10f624d7cef70c13d 1039 gnats_4.1.0-1.dsc
 939181d74e3a50ee633f4e817c79f0bb6e07934a 295382 gnats_4.1.0-1.diff.gz
 acb31f0cc19219381ccdb17d2a66e09f10c27edc 498304 gnats-user_4.1.0-1_amd64.deb
 e436196b1ab145707caf89a2fb4db95f4e701bb2 868306 gnats_4.1.0-1_amd64.deb
Checksums-Sha256: 
 860158036bcb02650bf05a4586d445f6f474d06b6b94da9a2fabb008638984d0 1039 gnats_4.1.0-1.dsc
 ee5b55b1147bfe777d9f8f653e1ba916dd88cc141c1bbe3094e0e045e6b08d5d 295382 gnats_4.1.0-1.diff.gz
 79464b5ba4fbe96236a0f9217a93b8c84f6049027f1e9c1490fb81baee776064 498304 gnats-user_4.1.0-1_amd64.deb
 ae698d20088feccb6fa4d8950d3d3483439daac8f3ce7b121385237eb39cd297 868306 gnats_4.1.0-1_amd64.deb
Files: 
 70623941dc6a50db52761cc9fe724630 1039 devel extra gnats_4.1.0-1.dsc
 d81b6782c5fc4037f1fb3d62145487db 295382 devel extra gnats_4.1.0-1.diff.gz
 ee73971380cd5d06766d30fdfe95ab39 498304 devel extra gnats-user_4.1.0-1_amd64.deb
 a223acaa73a56299b88f292dc503e4e0 868306 devel extra gnats_4.1.0-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFLhZRntzWmSeC6BMERApMBAKDBvcSwHDLP+CsOMKx5c53bZcSaaACg3VY0
bR3ApS6YyjYGrvWvueTfihY=
=wWs3
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: