]> granicus.if.org Git - shadow/commit
* NEWS: newusers will behave more like useradd.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 3 Feb 2008 17:45:58 +0000 (17:45 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 3 Feb 2008 17:45:58 +0000 (17:45 +0000)
commit4e01ea6c333d3bcf6378bfc0ee9e26d48d704593
tree40deec16a7e7ecdf866ebabdfa2f536f65eae850
parent65ed10d75ca0450f1992a23334d3fbaac027c6d1
* NEWS: newusers will behave more like useradd.
* src/newusers.c: The user's ID must be found before the group ID
to mimic useradd's behavior choices of UID and GID.
* src/newusers.c: Reuse the generic find_new_uid() and
find_new_gid() functions. This permits to respect the
UID_MIN/UID_MAX and GID_MIN/GID_MAX variables, should
* src/newusers.c: Check if the user or group exist using the
external databases (with the libc getpwnam/getgrnam functions).
Refuse to update an user which exist in an external database but
does not exist in the local database.
* src/newusers.c: Check the usernames and groupnames with
check_user_name() and check_group_name()
* src/newusers.c: Use isdigit() for readability.
* src/newusers.c: Check if numerical IDs are valid (no remaining
chars).

* NEWS, src/newusers.c: Fix the support for the NONE crypt method.

* src/newusers.c: Fix shadow group support (the list of admins was
not defined; it is now set to an empty list).
ChangeLog
NEWS
src/newusers.c