diff options
author | Tito Ragusa | 2014-01-17 09:17:55 +0100 |
---|---|---|
committer | Denys Vlasenko | 2014-01-17 09:17:55 +0100 |
commit | 891b98c9bcb0872465c1f9192b8cbc9779b8d164 (patch) | |
tree | 859511fb76a5c50793a2833697cf4b232865e283 /loginutils/Config.src | |
parent | 2e66daca654d130b820a4f0498de7f0ec355039a (diff) | |
download | busybox-891b98c9bcb0872465c1f9192b8cbc9779b8d164.zip busybox-891b98c9bcb0872465c1f9192b8cbc9779b8d164.tar.gz |
adduser,addgroup: introduce and use CONFIG_LAST_ID
Changes adduser.c, addgroup.c and Config.src to set and use CONFIG_LAST_ID.
function old new delta
adduser_main 841 865 +24
addgroup_main 407 425 +18
Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/Config.src')
-rw-r--r-- | loginutils/Config.src | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/loginutils/Config.src b/loginutils/Config.src index 9bf79af..b78d7c3 100644 --- a/loginutils/Config.src +++ b/loginutils/Config.src @@ -118,10 +118,17 @@ config FEATURE_CHECK_NAMES For compatibility with Samba machine accounts "$" is also supported at the end of the user or group name. +config LAST_ID + int "Last valid uid or gid for adduser and addgroup" + depends on ADDUSER || ADDGROUP + default 60000 + help + Last valid uid or gid for adduser and addgroup + config FIRST_SYSTEM_ID int "First valid system uid or gid for adduser and addgroup" depends on ADDUSER || ADDGROUP - range 0 64900 + range 0 LAST_ID default 100 help First valid system uid or gid for adduser and addgroup @@ -129,7 +136,7 @@ config FIRST_SYSTEM_ID config LAST_SYSTEM_ID int "Last valid system uid or gid for adduser and addgroup" depends on ADDUSER || ADDGROUP - range 0 64900 + range FIRST_SYSTEM_ID LAST_ID default 999 help Last valid system uid or gid for adduser and addgroup |