freebsd-nq/sbin/ipfw
Luigi Rizzo c562063980 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 change fixes the issue by always passing a program name
in the first entry to getopt. The motivation for this change
is to remove a potential compatibility issue should we use
a different getopt() implementation in the future.

No functional changes.

Submitted by:	Marta Carbone (parts)
MFC after:	4 weeks
2009-01-26 14:03:39 +00:00
..
ipfw2.c Some implementations of getopt() expect that argv[0] is always the 2009-01-26 14:03:39 +00:00
ipfw.8 Update the ipfw man page to reflect last change (-q option with nat option). 2008-12-18 21:46:18 +00:00
Makefile Remove blindly-copied extra include path. 2004-10-03 06:32:37 +00:00