Subject: misc/26891: exports(5) man page examples don't match the given syntax for networks
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <arto@selonen.org>
List: netbsd-bugs
Date: 09/09/2004 07:28:34
>Number: 26891
>Category: misc
>Synopsis: exports(5) man page examples don't match the given syntax for networks
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 09 07:29:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Arto Selonen
>Release: NetBSD-current ~20040901
>Organization:
>Environment:
NetBSD blah 2.0G NetBSD 2.0G (BLAH) #0: Wed Sep 1 13:34:16 EEST 2004 blah@blah:/obj/sys/arch/i386/compile/BLAH i386
>Description:
In exports(5) it says:
"The third case is specified by the flag -network=netname and optionally
-mask=netmask. If the mask is not specified, it will default to the mask
for that network class (A, B or C; see inet(4))."
A few lines later it gives the following example:
"/a -network 192.168.0/24"
Note also the missing '='.
I've used both of these formats successfully:
"/a -network=192.168.0.0/24"
and
"/a -network=192.168.0.0 -mask=255.255.255.0"
>How-To-Repeat:
man 5 exports
>Fix:
Either remove the non-confirming examples, or add the allowed usage.
The code would seem to support the latter.
>Release-Note:
>Audit-Trail:
>Unformatted: