diff options
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/addgroup.c | 2 | ||||
-rw-r--r-- | loginutils/login.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index 2a83c8a..71d3a8d 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c @@ -102,7 +102,7 @@ static void new_group(char *group, gid_t gid) /* add entry to group */ p = xasprintf("x:%u:", (unsigned) gr.gr_gid); if (update_passwd(bb_path_group_file, group, p, NULL) < 0) - exit(EXIT_FAILURE); + exit_FAILURE(); if (ENABLE_FEATURE_CLEAN_UP) free(p); #if ENABLE_FEATURE_SHADOWPASSWDS diff --git a/loginutils/login.c b/loginutils/login.c index 3322381..b02be21 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -173,7 +173,7 @@ static void die_if_nologin(void) fflush_all(); /* Users say that they do need this prior to exit: */ tcdrain(STDOUT_FILENO); - exit(EXIT_FAILURE); + exit_FAILURE(); } #else # define die_if_nologin() ((void)0) @@ -265,19 +265,19 @@ static void get_username_or_die(char *buf, int size_buf) do { c = getchar(); if (c == EOF) - exit(EXIT_FAILURE); + exit_FAILURE(); if (c == '\n') { if (!--cntdown) - exit(EXIT_FAILURE); + exit_FAILURE(); goto prompt; } } while (isspace(c)); /* maybe isblank? */ *buf++ = c; if (!fgets(buf, size_buf-2, stdin)) - exit(EXIT_FAILURE); + exit_FAILURE(); if (!strchr(buf, '\n')) - exit(EXIT_FAILURE); + exit_FAILURE(); while ((unsigned char)*buf > ' ') buf++; *buf = '\0'; |