Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 15:45:53 +0100
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        svn-src-all@freebsd.org
Subject:   Re: svn commit: r187713 - head/sbin/ipfw
Message-ID:  <20090126144552.GA3745@britannica.bec.de>
In-Reply-To: <200901261403.n0QE3dKJ051858@svn.freebsd.org>
References:  <200901261403.n0QE3dKJ051858@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 26, 2009 at 02:03:39PM +0000, Luigi Rizzo wrote:
>   Some implementations of getopt() expect that argv[0] is always the
>   program name, and ignore that entry.  ipfw2.c code instead skips
>   this entry and starts with options at offset 0, relying on a more
>   tolerant implementation of the library.

This is not true. Some (aka GNU) implementation consider optind = 0 as
reset condition.

Joerg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090126144552.GA3745>