HardenedBSD/usr.sbin/adduser
Mike Karels 0b39b2e2dd adduser: create dataset only if home is directly within dataset
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.

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D45229
MFC after:	3 days
2024-05-20 08:43:34 -05:00
..
adduser.8 adduser(8): support creation of ZFS dataset 2024-04-11 12:13:05 -06:00
adduser.conf.5 adduser(8): support creation of ZFS dataset 2024-04-11 12:13:05 -06:00
adduser.sh adduser: create dataset only if home is directly within dataset 2024-05-20 08:43:34 -05:00
Makefile
Makefile.depend
rmuser.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rmuser.sh