source:
patches/inetutils-1.4.2-inet_addr_fix-1.patch@
d4fc61c
Last change on this file since d4fc61c was a48d7758, checked in by , 18 years ago | |
---|---|
|
|
File size: 2.6 KB |
-
inetutils-1.4.2
Submitted By: Jim Gifford <jim@linuxfromscratch.org> Date: 2006-09-09 Initial Package Version: 1.4.2 Upstream Status: Unknown Origin: http://linuxfromscratch.org/pipermail/lfs-support/2005-January/025868.html Description: Updates to use newer GLIBC standards diff -Naur inetutils-1.4.2.orig/ftp/ftp.c inetutils-1.4.2/ftp/ftp.c
old new 119 119 static char hostnamebuf[80]; 120 120 121 121 memset((char *)&hisctladdr, 0, sizeof (hisctladdr)); 122 hisctladdr.sin_addr.s_addr = inet_addr(host); 123 if ( hisctladdr.sin_addr.s_addr != -1) {122 123 if (inet_aton(host, &hisctladdr.sin_addr) != 0) { 124 124 hisctladdr.sin_family = AF_INET; 125 125 (void) strncpy(hostnamebuf, host, sizeof(hostnamebuf)); 126 126 } else { -
libinetutils/iruserok.c
diff -Naur inetutils-1.4.2.orig/libinetutils/iruserok.c inetutils-1.4.2/libinetutils/iruserok.c
old new 260 260 register char **pp; 261 261 262 262 /* Try for raw ip address first. */ 263 if (isdigit (*lhost) && (l ong)(laddr = inet_addr (lhost)) != -1)263 if (isdigit (*lhost) && (laddr = inet_addr (lhost)) != INADDR_NONE) 264 264 return (raddr == laddr); 265 265 266 266 /* Better be a hostname. */ -
telnet/commands.c
diff -Naur inetutils-1.4.2.orig/telnet/commands.c inetutils-1.4.2/telnet/commands.c
old new 2291 2291 } 2292 2292 } else { 2293 2293 #endif 2294 temp = inet_addr(hostp); 2295 if (temp != (unsigned long) -1) { 2296 sin.sin_addr.s_addr = temp; 2294 if(inet_aton(hostp, &sin.sin_addr) != 0) { 2297 2295 sin.sin_family = AF_INET; 2298 2296 2299 2297 if (_hostname) … … 2897 2895 if (!c) 2898 2896 cp2 = 0; 2899 2897 2900 if ((tmp = inet_addr(cp)) != -1) { 2901 sin_addr.s_addr = tmp; 2898 if (inet_aton(cp, &sin_addr.s_addr) != 0) { 2902 2899 } else if (host = gethostbyname(cp)) { 2903 2900 #if defined(h_addr) 2904 2901 memmove((caddr_t)&sin_addr, -
inetutils-1.4.2
diff -Naur inetutils-1.4.2.orig/tftp/main.c inetutils-1.4.2/tftp/main.c
old new 228 228 strcpy(hostname, host->h_name); 229 229 } else { 230 230 peeraddr.sin_family = AF_INET; 231 peeraddr.sin_addr.s_addr = inet_addr(argv[1]); 232 if (peeraddr.sin_addr.s_addr == -1) { 231 if (inet_aton(argv[1], &peeraddr.sin_addr) == 0) { 233 232 connected = 0; 234 233 printf("%s: unknown host\n", argv[1]); 235 234 return;
Note:
See TracBrowser
for help on using the repository browser.