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
71c971334b
commit
1818482d81
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28662
@ -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…
Reference in New Issue
Block a user