Currently, if the prefix of the new home directory is a subdirectory
of a ZFS dataset, adduser will create a new dataset up one or more
levels from the intended destination. "pw useradd" will then create
a normal directory in the desired location, leaving an unused dataset.
Check for this situation when determining whether to create a dataset,
and let pw create the directory.
Details
Details
- Reviewers
imp des - Commits
- rG0ebe6df086f3: adduser: create dataset only if home is directly within dataset
rGda384ffbd5ad: adduser: create dataset only if home is directly within dataset
rG83731cdde6c6: adduser: create dataset only if home is directly within dataset
rG0b39b2e2ddb2: adduser: create dataset only if home is directly within dataset
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable