diff options
author | deischen <deischen@FreeBSD.org> | 2012-02-25 07:58:59 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2012-02-25 07:58:59 +0000 |
commit | e402cd1dbaeac51c3b92d04e76d78a06e5c128d4 (patch) | |
tree | 6d97fbb030d37d5f8dcad3a29b7fc5a326c15087 /usr.sbin/adduser | |
parent | c837fc155f219a49aaee1def4a3eaaa02773f30a (diff) | |
download | FreeBSD-src-e402cd1dbaeac51c3b92d04e76d78a06e5c128d4.zip FreeBSD-src-e402cd1dbaeac51c3b92d04e76d78a06e5c128d4.tar.gz |
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 'usr.sbin/adduser')
-rw-r--r-- | usr.sbin/adduser/adduser.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh index f645f59..4b0a6f6 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): " |