Your message dated Fri, 04 May 2007 17:32:07 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#422192: fixed in portreserve 0.0.0-4
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: portreserve
Version: 0.0.0-3
Severity: normal
Tags: patch

It is possible to define services by creating files in /etc/portreserve/
which contain a name listed in /etc/services.
However it is not possible to create a service using the port number.
This is due to a call to getservbyport (port, NULL) failing since port
is in host byte order, but geservbyport expects network byte order. To
fix it, convert the "port" to network byte order.
        getservbyport (htons(port), NULL);

--- portreserve-0.0.0-3/src/portreserve.c
+++ portreserve/src/portreserve.c
@@ -131,7 +131,7 @@ reserve (const char *file)
                int port = strtol (service, &endptr, 10);
                if (service == endptr)
                        return -1;
-               serv = getservbyport (port, NULL);
+               serv = getservbyport (htons(port), NULL);
                if (!serv)
                        return -1;
        }



-- 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 2.6.17-fce-it87
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

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

portreserve recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: portreserve
Source-Version: 0.0.0-4

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

portreserve_0.0.0-4.diff.gz
  to pool/main/p/portreserve/portreserve_0.0.0-4.diff.gz
portreserve_0.0.0-4.dsc
  to pool/main/p/portreserve/portreserve_0.0.0-4.dsc
portreserve_0.0.0-4_i386.deb
  to pool/main/p/portreserve/portreserve_0.0.0-4_i386.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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Javier Fernandez-Sanguino Pen~a <[EMAIL PROTECTED]> (supplier of updated 
portreserve 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 [EMAIL PROTECTED])


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

Format: 1.7
Date: Fri, 04 May 2007 19:24:39 +0200
Source: portreserve
Binary: portreserve
Architecture: source i386
Version: 0.0.0-4
Distribution: unstable
Urgency: low
Maintainer: Javier Fernandez-Sanguino Pen~a <[EMAIL PROTECTED]>
Changed-By: Javier Fernandez-Sanguino Pen~a <[EMAIL PROTECTED]>
Description: 
 portreserve - Port reservation program
Closes: 422192
Changes: 
 portreserve (0.0.0-4) unstable; urgency=low
 .
   * Use patch provided by Felix Engel to make it possible to create
     a service at /etc/portreserve/ using the port number (Closes: #422192)
Files: 
 36c3b326436d62d2e97fac40fadd8060 734 admin optional portreserve_0.0.0-4.dsc
 a7b7202dc66b4e322286d6a1f1eb4385 29954 admin optional 
portreserve_0.0.0-4.diff.gz
 cd6e4f76b6c67d8d634030c9fd71a3e4 13718 admin optional 
portreserve_0.0.0-4_i386.deb

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

iQCVAwUBRjtss/tEPvakNq0lAQK4AAP/ZXvuvSINN6LFxBm9pdt7CnnUCP5Hadb7
ynP1nuAAErN3QivZcvaqUpgd5mDvxfh+NGdkb6JQDz25FxJuRaEzieeyLbh7TMGT
rKwuLhi1qbS13uhxigfnMvkDimm7wrOCd8IJp60yKSicsbOsyZt9WE1SXKTd6crd
qBMrqUgQ7x4=
=9jo0
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to