summaryrefslogtreecommitdiffstats
path: root/adduser/adduser.sh
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
commit76d0f9e9ec3baf020dc15096efe1edf25315ac2e (patch)
treee1f4b1de930cfabbc93e7cd360a05e92fae8dbd2 /adduser/adduser.sh
parente556d6cfc8f43ab6477ba735e9dc9a11a65c52d6 (diff)
downloadpw-darwin-76d0f9e9ec3baf020dc15096efe1edf25315ac2e.tar.gz
pw-darwin-76d0f9e9ec3baf020dc15096efe1edf25315ac2e.tar.zst
pw-darwin-76d0f9e9ec3baf020dc15096efe1edf25315ac2e.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/adduser.sh')
-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): "