From: Nicolas François Date: Mon, 12 Aug 2013 22:13:12 +0000 (+0200) Subject: Improve error reporting. X-Git-Tag: 4.2.1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9126425a215ff3fcd2c16e7d3fcce72a44370560;p=shadow Improve error reporting. * src/useradd.c: Change message in case of find_new_sub_uids / find_new_sub_gids failure. This complements the messages already provided by these APIs. --- diff --git a/ChangeLog b/ChangeLog index c2ef35f9..db1872fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-08-13 Nicolas François + + * src/useradd.c: Change message in case of find_new_sub_uids / + find_new_sub_gids failure. This complements the messages already + provided by these APIs. + 2013-08-13 Nicolas François * lib/subordinateio.c: Fix handling of boundaries. diff --git a/src/useradd.c b/src/useradd.c index 0cbaa0aa..1b65bf44 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -2179,16 +2179,16 @@ int main (int argc, char **argv) if (is_sub_uid) { if (find_new_sub_uids(user_name, &sub_uid_start, &sub_uid_count) < 0) { fprintf (stderr, - _("%s: can't find subordinate user range\n"), - Prog); + _("%s: can't create subordinate user IDs\n"), + Prog); fail_exit(E_SUB_UID_UPDATE); } } if (is_sub_gid) { if (find_new_sub_gids(user_name, &sub_gid_start, &sub_gid_count) < 0) { fprintf (stderr, - _("%s: can't find subordinate group range\n"), - Prog); + _("%s: can't create subordinate group IDs\n"), + Prog); fail_exit(E_SUB_GID_UPDATE); } }