summaryrefslogtreecommitdiff
path: root/lib/libutil/pw_util.c
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-08-24 18:23:21 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-08-24 18:23:21 +0000
commit1818482d816801b16e6f263e6635a06ce92a8046 (patch)
treebb5aad5b012b6174dd2d735d57692f8aeb27e68a /lib/libutil/pw_util.c
parent71c971334b4a93cd9b0c885f644285691ef79252 (diff)
Notes
Diffstat (limited to 'lib/libutil/pw_util.c')
-rw-r--r--lib/libutil/pw_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c
index 7ebe86ee63ed..6283b95bdcf1 100644
--- a/lib/libutil/pw_util.c
+++ b/lib/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);
}