]> granicus.if.org Git - shadow/commitdiff
Improve error reporting.
authorNicolas François <nicolas.francois@centraliens.net>
Mon, 12 Aug 2013 22:13:12 +0000 (00:13 +0200)
committerNicolas François <nicolas.francois@centraliens.net>
Mon, 12 Aug 2013 22:13:12 +0000 (00:13 +0200)
* 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.

ChangeLog
src/useradd.c

index c2ef35f9f2537ef52d42028ca5a1aa8519ff532b..db1872fa7b4d9c44a1a40e20224574741fccec26 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-08-13  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * 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  <nicolas.francois@centraliens.net>
 
        * lib/subordinateio.c: Fix handling of boundaries.
index 0cbaa0aa6b235dfeff306ae38d165329ecd3f630..1b65bf449c4edab815429a99babb85b42f2fff52 100644 (file)
@@ -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);
                }
        }