aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
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
commita2cdef71d15fb86f0ce9d54eb8f91f004d3fe026 (patch)
tree6d97fbb030d37d5f8dcad3a29b7fc5a326c15087 /usr.sbin
parente7e7593cd86f5ec6731633b1ca6b2c856aef52b0 (diff)
downloadsrc-a2cdef71d15fb86f0ce9d54eb8f91f004d3fe026.tar.gz
src-a2cdef71d15fb86f0ce9d54eb8f91f004d3fe026.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
Notes
Notes: svn path=/head/; revision=232146
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/adduser/adduser.sh1
1 files changed, 1 insertions, 0 deletions
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): "