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
Unknown Object (File)
Wed, Oct 15, 1:59 AM
Unknown Object (File)
Thu, Oct 9, 11:52 PM
Unknown Object (File)
Thu, Oct 9, 11:51 PM
Unknown Object (File)
Thu, Oct 9, 11:51 PM
Unknown Object (File)
Thu, Oct 9, 11:51 PM
Unknown Object (File)
Thu, Oct 9, 8:14 PM
Unknown Object (File)
Thu, Oct 9, 7:57 PM
Unknown Object (File)
Wed, Oct 8, 11:57 PM
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