[Bug 263011] /usr/sbin/mountd warning "No mask specified for network, using out-of-date default"

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 02 Apr 2022 18:50:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263011

            Bug ID: 263011
           Summary: /usr/sbin/mountd warning "No mask specified for
                    network, using out-of-date default"
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: pmc@citylink.dinoex.sub.org

Created attachment 232902
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232902&action=edit
place warning later

The warning was introduced per 92aebdeaff5
But it is not always true. 

This one is okay, as expected:
/ext            -network=192.168.99.1/27
This one gives the warning, not as expected:
/ext            -network=192.168.99.1 -mask=255.255.255.240
But swapping the parameters, it gets accepted:
/ext            -mask=255.255.255.240 -network=192.168.99.1

The behaviour is obvious from the source.

There is no effective harm done, only the warning is quite imperative, so that
one will search for a mistake where assumably none is.

I tried a quick fix, as attached.

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