diff options
author | Daniel Eischen <deischen@FreeBSD.org> | 2012-02-25 07:58:59 +0000 |
---|---|---|
committer | Daniel Eischen <deischen@FreeBSD.org> | 2012-02-25 07:58:59 +0000 |
commit | 5981966a8ffda48fad2d1a5f93697220ba8aab8a (patch) | |
tree | 1fd5ae6fba85a8dab193e83efcf5efec65abb406 /adduser | |
parent | 577f7aac3dda1702f68f91c9a938693f52c16ccf (diff) | |
download | pw-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.sh | 1 |
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): " |