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)
Sun, Oct 5, 9:04 PM
Unknown Object (File)
Sep 13 2025, 11:48 PM
Unknown Object (File)
Sep 13 2025, 5:23 AM
Unknown Object (File)
Aug 31 2025, 2:28 PM
Unknown Object (File)
Aug 13 2025, 10:22 AM
Unknown Object (File)
Aug 10 2025, 12:50 AM
Unknown Object (File)
Jun 30 2025, 9:54 PM
Unknown Object (File)
Jun 29 2025, 2:26 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