Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37712634
en ru br
ALT Linux repos
S:3.0-alt10
5.0: 3.0-alt7
4.1: 3.0-alt6
4.0: 3.0-alt6
3.0: 3.0-alt5

Group :: Networking/Remote access
RPM: telnet

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: telnet-3.0-owl-ipv4-only.patch
Download


diff -ur telnet-3.0-owl-linux/usr.bin/telnet/commands.c telnet-3.0-owl-ipv4-only/usr.bin/telnet/commands.c
--- telnet-3.0-owl-linux/usr.bin/telnet/commands.c	Wed Nov 21 05:29:38 2001
+++ telnet-3.0-owl-ipv4-only/usr.bin/telnet/commands.c	Sun Nov 25 04:46:42 2001
@@ -2372,7 +2372,7 @@
     {
 	hostname = hostp;
 	memset(&hints, 0, sizeof(hints));
-	hints.ai_family = PF_UNSPEC;
+	hints.ai_family = AF_INET;
 	hints.ai_socktype = SOCK_STREAM;
 	hints.ai_flags = 0;
 	if (portp == NULL) {
@@ -2416,7 +2416,7 @@
 	    struct addrinfo ahints, *ares;
 
 	    memset(&ahints, 0, sizeof(ahints));
-	    ahints.ai_family = PF_UNSPEC;
+	    ahints.ai_family = AF_INET;
 	    ahints.ai_socktype = SOCK_STREAM;
 	    ahints.ai_flags = AI_PASSIVE;
 	    error = getaddrinfo(aliasp, "0", &ahints, &ares);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin