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 1997-08-24 18:23:21 +00:00
parent c632b26058
commit e309caa011
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);
}