Hello community, here is the log from the commit of package telnet for openSUSE:11.3 checked in at Mon Jul 11 16:47:18 CEST 2011.
-------- --- old-versions/11.3/all/telnet/telnet.changes 2009-09-30 15:30:39.000000000 +0200 +++ 11.3/telnet/telnet.changes 2011-07-11 10:45:53.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Jul 11 08:41:52 UTC 2011 - [email protected] + +- fix crash when called with -b option (bnc#700229) + +------------------------------------------------------------------- Package does not exist at destination yet. Using Fallback old-versions/11.3/all/telnet Destination is old-versions/11.3/UPDATES/all/telnet calling whatdependson for 11.3-i586 New: ---- telnet-bsd-1.2-hostalias.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ telnet.spec ++++++ --- /var/tmp/diff_new_pack.4Xnltu/_old 2011-07-11 16:46:41.000000000 +0200 +++ /var/tmp/diff_new_pack.4Xnltu/_new 2011-07-11 16:46:41.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: 147.<RELEASE2> 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: [email protected] For additional commands, e-mail: [email protected]
