Hello community, here is the log from the commit of package telnet for openSUSE:Factory checked in at Fri Jul 1 16:37:29 CEST 2011. -------- --- telnet/telnet.changes 2009-09-30 15:30:39.000000000 +0200 +++ /mounts/work_src_done/STABLE/telnet/telnet.changes 2011-06-30 11:32:28.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Jun 30 09:29:53 UTC 2011 - vcizek@novell.com + +- exit cleanly, when hostalias cannot be resolved (bnc#700229) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- telnet-bsd-1.2-hostalias.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ telnet.spec ++++++ --- /var/tmp/diff_new_pack.hjwtiq/_old 2011-07-01 16:33:06.000000000 +0200 +++ /var/tmp/diff_new_pack.hjwtiq/_new 2011-07-01 16:33:06.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: 152 Summary: A client program for the telnet remote login protocol BuildRequires: ncurses-devel Requires: netcfg @@ -35,6 +35,7 @@ Patch1: %{name}-bsd-1.2-suppress_hostname.patch Patch2: %{name}-bsd-%{version}-man-page.patch Patch3: telnet-bsd-1.2-no_gethostbyname.patch +Patch4: telnet-bsd-1.2-hostalias.patch %description Telnet is an old protocol for logging into remote systems. It is @@ -68,6 +69,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 @@ -2451,14 +2451,15 @@ tn (int argc, char *argv[]) if (error) { warn ("%s: %s", aliasp, gai_strerror (error)); + printf ("Couldn't get address for %s\n", aliasp); close (net); - freeaddrinfo (ares); - continue; + return 0; } if (bind (net, ares->ai_addr, ares->ai_addrlen) < 0) { perror (aliasp); + printf ("Couldn't bind to %s\n", aliasp); close (net); /* dump descriptor */ return 0; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org