Hello community,

here is the log from the commit of package telnet for openSUSE:11.4
checked in at Mon Jul 11 16:55:17 CEST 2011.



--------
--- old-versions/11.4/all/telnet/telnet.changes 2009-09-30 15:30:39.000000000 
+0200
+++ 11.4/telnet/telnet.changes  2011-06-30 11:32:28.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Jun 30 09:29:53 UTC 2011 - vci...@novell.com
+
+- exit cleanly, when hostalias cannot be resolved (bnc#700229) 
+
+-------------------------------------------------------------------

Package does not exist at destination yet. Using Fallback 
old-versions/11.4/all/telnet
Destination is old-versions/11.4/UPDATES/all/telnet
calling whatdependson for 11.4-i586


New:
----
  telnet-bsd-1.2-hostalias.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ telnet.spec ++++++
--- /var/tmp/diff_new_pack.DnSgbt/_old  2011-07-11 16:53:45.000000000 +0200
+++ /var/tmp/diff_new_pack.DnSgbt/_new  2011-07-11 16:53:45.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package telnet (Version 1.2)
+# spec file for package telnet
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 Provides:       nkitb:/usr/bin/telnet
 AutoReqProv:    on
 Version:        1.2
-Release:        142
+Release:        150.<RELEASE151>
 Summary:        A client program for the telnet remote login protocol
 BuildRequires:  ncurses-devel
 Requires:       netcfg
@@ -35,6 +35,8 @@
 Patch1:         %{name}-bsd-1.2-suppress_hostname.patch
 Patch2:         %{name}-bsd-%{version}-man-page.patch
 Patch3:         telnet-bsd-1.2-no_gethostbyname.patch
+#PATCH-FIX-UPSTREAM fix crash when using -b option bnc#700229
+Patch4:         telnet-bsd-1.2-hostalias.patch
 
 %description
 Telnet is an old protocol for logging into remote systems.  It is
@@ -68,6 +70,7 @@
 %patch1 -p1
 %patch2
 %patch3
+%patch4 -p1
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -fpie $(ncurses5-config --cflags)"

++++++ telnet-bsd-1.2-hostalias.patch ++++++
Index: telnet-bsd-1.2/telnet/commands.c
===================================================================
--- telnet-bsd-1.2.orig/telnet/commands.c
+++ telnet-bsd-1.2/telnet/commands.c
@@ -2450,17 +2450,21 @@ tn (int argc, char *argv[])
          error = getaddrinfo (aliasp, "0", &ahints, &ares);
          if (error)
            {
+             printf ("Couldn't get address for %s\n", aliasp);
              warn ("%s: %s", aliasp, gai_strerror (error));
              close (net);
-             freeaddrinfo (ares);
+             net = -1;
              continue;
            }
 
          if (bind (net, ares->ai_addr, ares->ai_addrlen) < 0)
            {
+             printf ("Couldn't bind to %s\n", aliasp);
              perror (aliasp);
              close (net);      /* dump descriptor */
-             return 0;
+             net = -1;
+             freeaddrinfo (ares);
+             continue;
            }
          freeaddrinfo (ares);
        }

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to