Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37636632
en ru br
ALT Linux repos
S:20221126-alt1
5.0: 20071127-alt4
4.1: 20071127-alt0.M41.1
4.0: 20020927-alt4.2
3.0: 20020927-alt2

Group :: Networking/Other
RPM: iputils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: iputils-ss020927-alt-datalen-fix.patch
Download


--- iputils-ss020927/traceroute6.c.orig	2002-09-20 19:44:22 +0400
+++ iputils-ss020927/traceroute6.c	2002-10-16 20:13:21 +0400
@@ -438,12 +438,10 @@ int main(int argc, char *argv[])
 	if (*++argv) {
 		datalen = atoi(*argv);
 		/* Message for rpm maintainers: have _shame_. If you want
 		 * to fix something send the patch to me for sanity checking.
 		 * "datalen" patch is a shit. */
-		if ((unsigned int)datalen == 0)
-			datalen == sizeof(struct pkt_format);
 	}
 
 	if (datalen < (int)sizeof(struct pkt_format) || datalen >= MAXPACKET) {
 		Fprintf(stderr,
 		    "traceroute: packet size must be %d <= s < %d.\n",
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin