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): "
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to