diff options
author | Tito Ragusa <farmatito@tiscali.it> | 2014-01-17 09:17:55 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-17 09:17:55 +0100 |
commit | 891b98c9bcb0872465c1f9192b8cbc9779b8d164 (patch) | |
tree | 859511fb76a5c50793a2833697cf4b232865e283 /loginutils/Config.src | |
parent | 2e66daca654d130b820a4f0498de7f0ec355039a (diff) | |
download | busybox-w32-891b98c9bcb0872465c1f9192b8cbc9779b8d164.tar.gz busybox-w32-891b98c9bcb0872465c1f9192b8cbc9779b8d164.tar.bz2 busybox-w32-891b98c9bcb0872465c1f9192b8cbc9779b8d164.zip |
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 9bf79afee..b78d7c38e 100644 --- a/loginutils/Config.src +++ b/loginutils/Config.src | |||
@@ -118,10 +118,17 @@ config FEATURE_CHECK_NAMES | |||
118 | For compatibility with Samba machine accounts "$" is also supported | 118 | For compatibility with Samba machine accounts "$" is also supported |
119 | at the end of the user or group name. | 119 | at the end of the user or group name. |
120 | 120 | ||
121 | config LAST_ID | ||
122 | int "Last valid uid or gid for adduser and addgroup" | ||
123 | depends on ADDUSER || ADDGROUP | ||
124 | default 60000 | ||
125 | help | ||
126 | Last valid uid or gid for adduser and addgroup | ||
127 | |||
121 | config FIRST_SYSTEM_ID | 128 | config FIRST_SYSTEM_ID |
122 | int "First valid system uid or gid for adduser and addgroup" | 129 | int "First valid system uid or gid for adduser and addgroup" |
123 | depends on ADDUSER || ADDGROUP | 130 | depends on ADDUSER || ADDGROUP |
124 | range 0 64900 | 131 | range 0 LAST_ID |
125 | default 100 | 132 | default 100 |
126 | help | 133 | help |
127 | First valid system uid or gid for adduser and addgroup | 134 | First valid system uid or gid for adduser and addgroup |
@@ -129,7 +136,7 @@ config FIRST_SYSTEM_ID | |||
129 | config LAST_SYSTEM_ID | 136 | config LAST_SYSTEM_ID |
130 | int "Last valid system uid or gid for adduser and addgroup" | 137 | int "Last valid system uid or gid for adduser and addgroup" |
131 | depends on ADDUSER || ADDGROUP | 138 | depends on ADDUSER || ADDGROUP |
132 | range 0 64900 | 139 | range FIRST_SYSTEM_ID LAST_ID |
133 | default 999 | 140 | default 999 |
134 | help | 141 | help |
135 | Last valid system uid or gid for adduser and addgroup | 142 | Last valid system uid or gid for adduser and addgroup |