From e309caa011c72381f3760db60667bb985462994f Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 24 Aug 1997 18:23:21 +0000 Subject: Cosmetic: distinguish in diag message between rebuilding and updating the database. PR: 3397 Submitted by: taob@risc.org (Brian Tao) --- lib/libutil/pw_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libutil') diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c index 7ebe86e..6283b95 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); } -- cgit v1.1