Page MenuHomeFreeBSD

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

Authored by markj on Tue, Sep 16, 8:33 PM.
Tags
None
Referenced Files
F131495925: D52587.diff
Wed, Oct 8, 3:10 PM
Unknown Object (File)
Sun, Oct 5, 4:51 AM
Unknown Object (File)
Sat, Oct 4, 3:05 PM
Unknown Object (File)
Sat, Oct 4, 3:36 AM
Unknown Object (File)
Sat, Oct 4, 2:27 AM
Unknown Object (File)
Thu, Oct 2, 11:12 PM
Unknown Object (File)
Tue, Sep 30, 10:48 AM
Unknown Object (File)
Tue, Sep 30, 7:54 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