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, Sep 29, 4:14 PM
Unknown Object (File)
Tue, Sep 29, 12:16 PM
Unknown Object (File)
Fri, Sep 25, 8:34 AM
Unknown Object (File)
Sep 11 2026, 4:09 AM
Unknown Object (File)
Sep 11 2026, 4:09 AM
Unknown Object (File)
Sep 11 2026, 4:05 AM
Unknown Object (File)
Sep 9 2026, 2:15 AM
Unknown Object (File)
Sep 2 2026, 7:53 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