Cosmetic: distinguish in diag message between rebuilding and updating

the database.

PR:		3397
Submitted by:	taob@risc.org (Brian Tao)
This commit is contained in:
Joerg Wunsch 1997-08-24 18:23:21 +00:00
parent 71c971334b
commit 1818482d81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28662
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}