diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c index 7ebe86ee63ed..6283b95bdcf1 100644 --- a/lib/libutil/pw_util.c +++ b/lib/libutil/pw_util.c @@ -144,12 +144,13 @@ char *username; int pstat; pid_t pid; - warnx("rebuilding the database..."); (void)fflush(stderr); if (!(pid = vfork())) { if(!username) { + warnx("rebuilding the database..."); execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", tempname, NULL); } else { + warnx("updating the database..."); execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-u", username, tempname, NULL); } diff --git a/usr.sbin/vipw/pw_util.c b/usr.sbin/vipw/pw_util.c index 7ebe86ee63ed..6283b95bdcf1 100644 --- a/usr.sbin/vipw/pw_util.c +++ b/usr.sbin/vipw/pw_util.c @@ -144,12 +144,13 @@ char *username; int pstat; pid_t pid; - warnx("rebuilding the database..."); (void)fflush(stderr); if (!(pid = vfork())) { if(!username) { + warnx("rebuilding the database..."); execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", tempname, NULL); } else { + warnx("updating the database..."); execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-u", username, tempname, NULL); }