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, Dec 7, 4:38 AM
Unknown Object (File)
Thu, Nov 27, 7:28 PM
Unknown Object (File)
Wed, Nov 12, 3:29 AM
Unknown Object (File)
Nov 2 2025, 10:58 PM
Unknown Object (File)
Oct 24 2025, 10:10 PM
Unknown Object (File)
Oct 21 2025, 3:12 PM
Unknown Object (File)
Oct 20 2025, 8:55 PM
Unknown Object (File)
Oct 19 2025, 1:40 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