Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37868249
en ru br
ALT Linux repos
S:1.60-alt19
5.0: 1.60-alt15
4.1: 1.60-alt13
4.0: 1.60-alt13
3.0: 1.60-alt12

Group :: System/Configuration/Networking
RPM: net-tools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: net-tools-1.60-rh-trailingblank.patch
Download


--- net-tools-1.60/hostname.c.trailingblank	2001-04-08 19:04:23 +0200
+++ net-tools-1.60/hostname.c	2003-08-19 14:21:17 +0200
@@ -153,13 +153,19 @@
 
     switch (c) {
     case 'a':
-	while (hp->h_aliases[0])
-	    printf("%s ", *hp->h_aliases++);
+	while (hp->h_aliases[0]) {
+	    printf("%s", *hp->h_aliases++);
+	    if (hp->h_aliases[0])
+                printf(" ");
+	}
 	printf("\n");
 	break;
     case 'i':
-	while (hp->h_addr_list[0])
-	    printf("%s ", inet_ntoa(*(struct in_addr *) *hp->h_addr_list++));
+	while (hp->h_addr_list[0]) {
+	    printf("%s", inet_ntoa(*(struct in_addr *) *hp->h_addr_list++));
+	    if (hp->h_addr_list[0])
+                printf(" ");
+	}
 	printf("\n");
 	break;
     case 'd':
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin