Fix the default uid/gid values in nfsuserd.c
authorrmacklem <rmacklem@FreeBSD.org>
Sun, 23 Apr 2017 23:09:02 +0000 (23:09 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Sun, 23 Apr 2017 23:09:02 +0000 (23:09 +0000)
commitd4065348082ff37df54e46bfd235ca8f9f47d475
tree6927b374d6ab3c775fd921e9c1530ec66f469f44
parentec379f9fd53ef78fb13dd3647f3168775545a13f
Fix the default uid/gid values in nfsuserd.c

This patch sets the default uid/gid values for "nobody" and "nogroup"
to the values in the password and group databases. Normally nfsuserd(8)
will override these with whatever is in the password/group databases,
so these values are only used when the databases entries aren't available.
It would be nice to use the definitions in sys/conf.h, but those are
in the _KERNEL section of the file.

Reported by: tez@pkgsrc.org
Submitted by: tez@pkgsrc.org
MFC after: 2 weeks
usr.sbin/nfsuserd/nfsuserd.c