Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2021 18:18:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252644] ifconfig 'usage' does not match man page synopsis
Message-ID:  <bug-252644-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252644

            Bug ID: 252644
           Summary: ifconfig 'usage' does not match man page synopsis
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: ghuckriede@blackberry.com

Created attachment 221537
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D221537&action=
=3Dedit
Possible patch

'ifconfig' displayed usage is incomplete and does not match the synopsis in=
 the
man page.=20

Steps to Reproduce:=20
Execute 'ifconfig' with invalid options and compare with man page synopsis.

Actual Results:=20
root@FreeBSD_head:/usr/src # ifconfig -Z
ifconfig: illegal option -- Z
usage: ifconfig [-f type:format] [-g groupname] [-C] [-L] interface
address_family
                [address [dest_address]] [parameters]
       ifconfig interface create
       ifconfig -a [-g groupname] [-C] [-L] [-d] [-m] [-u] [-v]
[address_family]
       ifconfig -l [-d] [-u] [address_family]
       ifconfig [-g groupname] [-C] [-L] [-d] [-m] [-u] [-v]
root@FreeBSD_head:/usr/src #=20

Expected Results:
root@FreeBSD_head:/usr/src # ifconfig -Z
ifconfig: illegal option -- Z
usage: ifconfig [-f type:format[,type:format]] [-L] [-k] [-m] [-n] interface
                [create] address_family [address [dest_address]] [parameter=
s]
       ifconfig interface destroy
       ifconfig -a [-L] [-d] [-g groupname] [-m] [-u] [-v] [address_family]
       ifconfig -l [-d] [-u] [address_family]
       ifconfig [-L] [-d] [-k] [-m] [-u] [-v] [-C]
       ifconfig [-g groupname]
root@FreeBSD_head:/usr/src #=20
N.B.Patched ifconfig is displayed and matches the man page synopsis.

Build Date & Hardware:=20
root@FreeBSD_head:/usr/src # uname -a
FreeBSD FreeBSD_head 13.0-CURRENT FreeBSD 13.0-CURRENT #5 r369005: Wed Jan =
13
10:20:13 EST 2021=20=20=20=20
root@FreeBSD_head:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

Additional Information:

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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