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:
parent
c632b26058
commit
e309caa011
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user