summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-08-24 18:23:21 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-08-24 18:23:21 +0000
commit52c51ddaee222eca9e7f8beb46a803e21f957012 (patch)
tree3accd9e2c336381c714c23653bd4b82d7f492338 /libutil
parentd02adb5102af464144763de484e24457c801949c (diff)
downloadpw-darwin-52c51ddaee222eca9e7f8beb46a803e21f957012.tar.gz
pw-darwin-52c51ddaee222eca9e7f8beb46a803e21f957012.tar.zst
pw-darwin-52c51ddaee222eca9e7f8beb46a803e21f957012.zip
Cosmetic: distinguish in diag message between rebuilding and updating
the database. PR: 3397 Submitted by: taob@risc.org (Brian Tao)
Diffstat (limited to 'libutil')
-rw-r--r--libutil/pw_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libutil/pw_util.c b/libutil/pw_util.c
index 7ebe86e..6283b95 100644
--- a/libutil/pw_util.c
+++ b/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);
}