From a2cdef71d15fb86f0ce9d54eb8f91f004d3fe026 Mon Sep 17 00:00:00 2001 From: Daniel Eischen Date: Sat, 25 Feb 2012 07:58:59 +0000 Subject: [PATCH] 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 --- usr.sbin/adduser/adduser.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh index f645f5956048..4b0a6f61b272 100644 --- a/usr.sbin/adduser/adduser.sh +++ b/usr.sbin/adduser/adduser.sh @@ -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): "