diff options
author | gjb <gjb@FreeBSD.org> | 2015-06-05 02:22:04 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2015-06-05 02:22:04 +0000 |
commit | 043d779d9b297a81ab075e0a844aeaee92be1765 (patch) | |
tree | 44cc123b5e188f88a4de45e612daecb140bdd30c /release | |
parent | f5539a523a9628c8dab79e49cc1bbebf82135377 (diff) | |
download | FreeBSD-src-043d779d9b297a81ab075e0a844aeaee92be1765.zip FreeBSD-src-043d779d9b297a81ab075e0a844aeaee92be1765.tar.gz |
Work around a potential bug in pw(8) when '-m' is specified.
According to the manual page, '-m' should create the user home
directory, however rigorous testing suggests it does not, and
it is unclear if this is an implementation or expectation issue.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rw-r--r-- | release/tools/arm.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/tools/arm.subr b/release/tools/arm.subr index 3f58259..564d9b6 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -82,7 +82,7 @@ arm_create_user() { # and set the default password for the 'root' user to 'root'. chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ groupadd freebsd -g 1001 - chroot ${CHROOTDIR} mkdir -p ${DESTDIR}/home + chroot ${CHROOTDIR} mkdir -p ${DESTDIR}/home/freebsd chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ useradd freebsd \ -m -M 0755 -w yes -n freebsd -u 1001 -g 1001 -G 0 \ |