diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1997-08-24 18:23:21 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1997-08-24 18:23:21 +0000 |
| commit | 52c51ddaee222eca9e7f8beb46a803e21f957012 (patch) | |
| tree | 3accd9e2c336381c714c23653bd4b82d7f492338 | |
| parent | d02adb5102af464144763de484e24457c801949c (diff) | |
| download | pw-darwin-52c51ddaee222eca9e7f8beb46a803e21f957012.tar.gz pw-darwin-52c51ddaee222eca9e7f8beb46a803e21f957012.zip | |
Cosmetic: distinguish in diag message between rebuilding and updating
the database.
PR: 3397
Submitted by: taob@risc.org (Brian Tao)
| -rw-r--r-- | libutil/pw_util.c | 3 |
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); } |
