svn commit: r232146 - head/usr.sbin/adduser

Daniel Eischen deischen at FreeBSD.org
Sat Feb 25 07:59:00 UTC 2012


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): "


More information about the svn-src-all mailing list