Date: Mon, 26 Jan 2009 14:03:39 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/ipfw ipfw2.c Message-ID: <200901261408.n0QE8nN5027291@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
luigi 2009-01-26 14:03:39 UTC
FreeBSD src repository
Modified files:
sbin/ipfw ipfw2.c
Log:
SVN rev 187713 on 2009-01-26 14:03:39Z by luigi
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
Revision Changes Path
1.136 +42 -27 src/sbin/ipfw/ipfw2.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901261408.n0QE8nN5027291>
