Page MenuHomeFreeBSD

pw: Add a missing chown() when creating dirs in mkdir_home_parents()
ClosedPublic

Authored by markj on Sep 16 2025, 8:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 2, 10:58 PM
Unknown Object (File)
Fri, Oct 24, 10:10 PM
Unknown Object (File)
Tue, Oct 21, 3:12 PM
Unknown Object (File)
Mon, Oct 20, 8:55 PM
Unknown Object (File)
Sun, Oct 19, 1:40 AM
Unknown Object (File)
Fri, Oct 17, 9:35 AM
Unknown Object (File)
Fri, Oct 17, 1:45 AM
Unknown Object (File)
Wed, Oct 15, 1:59 AM
Subscribers

Details

Summary

mkdir_home_parents() effectively performs a mkdir -p of the root home
directory. It chowns the home directory to 0, 0, but doesn't do so for
the intermediate directories. Add an explicit chown() call for those
too.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable