Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2015 02:22:05 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284010 - head/release/tools
Message-ID:  <201506050222.t552M5UL076846@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Fri Jun  5 02:22:04 2015
New Revision: 284010
URL: https://svnweb.freebsd.org/changeset/base/284010

Log:
  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

Modified:
  head/release/tools/arm.subr

Modified: head/release/tools/arm.subr
==============================================================================
--- head/release/tools/arm.subr	Fri Jun  5 00:46:49 2015	(r284009)
+++ head/release/tools/arm.subr	Fri Jun  5 02:22:04 2015	(r284010)
@@ -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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506050222.t552M5UL076846>