summaryrefslogtreecommitdiffstats
path: root/adduser
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2012-02-25 07:58:59 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2012-02-25 07:58:59 +0000
commit5981966a8ffda48fad2d1a5f93697220ba8aab8a (patch)
tree1fd5ae6fba85a8dab193e83efcf5efec65abb406 /adduser
parent577f7aac3dda1702f68f91c9a938693f52c16ccf (diff)
downloadpw-darwin-5981966a8ffda48fad2d1a5f93697220ba8aab8a.tar.gz
pw-darwin-5981966a8ffda48fad2d1a5f93697220ba8aab8a.tar.zst
pw-darwin-5981966a8ffda48fad2d1a5f93697220ba8aab8a.zip
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
Diffstat (limited to 'adduser')
-rw-r--r--adduser/adduser.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/adduser/adduser.sh b/adduser/adduser.sh
index f645f59..4b0a6f6 100644
--- a/adduser/adduser.sh
+++ b/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): "