Page MenuHomeFreeBSD

replace the numbers with UID_NOBODY, GID_NOGROUP in mountd.c
ClosedPublic

Authored by rmacklem on Jun 15 2020, 3:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 14, 2:06 PM
Unknown Object (File)
Mon, Apr 13, 8:04 PM
Unknown Object (File)
Sat, Apr 11, 8:45 PM
Unknown Object (File)
Feb 16 2026, 7:24 PM
Unknown Object (File)
Feb 8 2026, 3:10 AM
Unknown Object (File)
Feb 7 2026, 9:31 PM
Unknown Object (File)
Jan 31 2026, 2:28 AM
Unknown Object (File)
Jan 14 2026, 6:01 PM
Subscribers

Details

Summary

Since UID_NOBODY, GID_NOGROUP were not exposed to userland,
mountd.c has the numbers hard coded in it.
This patch exposes UID_NOBODY, GID_NOGROUP to userland
and mountd.c is changed to use them.

Suggested by kib@.

Test Plan

It compiles fine and find/grep did not locate any uses
of the UID_NOBODY, GID_NOGROUP constants in
the userland part of /usr/src.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable