Date: 10 Feb 2002 18:03:14 -0800 From: swear@blarg.net (Gary W. Swearingen) To: freebsd-audit@freebsd.org Cc: FreeBSD-gnats-submit@freebsd.org, Dima Dorfman <dima@trit.org> Subject: Re: docs/32662: arp(8) uses "this host" with two different meanings. Message-ID: <546654wza5.654@localhost.localdomain> In-Reply-To: <20020210082732.14DA83E36@bazooka.trit.org> References: <20020210082732.14DA83E36@bazooka.trit.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Dima Dorfman <dima@trit.org> writes: > swear@blarg.net (Gary W. Swearingen) wrote: > > Below is the patch on arp.c [snipped comments on the man page patch] > Please send this patch to -audit for review. I'll commit it if nobody > objects. This is my first encounter with -audit, so feel free to complain if I was supposed to say something about this patch that's already in the PR DB or anything else. The original file had this in it: "$FreeBSD: src/usr.sbin/arp/arp.c,v 1.22.2.5 2001/10/18 10:17:47 ru Exp $" --- /usr/src/usr.sbin/arp/arp..orig.c Wed Dec 26 14:33:44 2001 +++ /usr/src/usr.sbin/arp/arp.c Sun Jan 27 13:43:33 2002 @@ -210,6 +210,9 @@ args[4] = &arg[4][0]; retval = 0; while(fgets(line, 100, fp) != NULL) { + if (line[strspn(line, " \t")] == '#') + continue; + line[strcspn(line, "#")] = '\0'; i = sscanf(line, "%49s %49s %49s %49s %49s", arg[0], arg[1], arg[2], arg[3], arg[4]); if (i < 2) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?546654wza5.654>