Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2012 07:59:00 +0000 (UTC)
From:      Daniel Eischen <deischen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232146 - head/usr.sbin/adduser
Message-ID:  <201202250759.q1P7x01v006860@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: deischen
Date: Sat Feb 25 07:58:59 2012
New Revision: 232146
URL: http://svn.freebsd.org/changeset/base/232146

Log:
  When using uidstart in /etc/adduser.conf, get the next
  available user id and show it in the "Uid [xxx]" prompt.
  
  PR:		163863
  Submitted by:	Moritz Wilhelmy (mw at wzff dot de)
  MFC after:	2 weeks

Modified:
  head/usr.sbin/adduser/adduser.sh

Modified: head/usr.sbin/adduser/adduser.sh
==============================================================================
--- head/usr.sbin/adduser/adduser.sh	Sat Feb 25 04:54:51 2012	(r232145)
+++ head/usr.sbin/adduser/adduser.sh	Sat Feb 25 07:58:59 2012	(r232146)
@@ -488,6 +488,7 @@ get_uid() {
 	_prompt=
 
 	if [ -n "$uuid" ]; then
+		uuid=`get_nextuid $uuid`
 		_prompt="Uid [$uuid]: "
 	else
 		_prompt="Uid (Leave empty for default): "



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