Updates for NetBSD

This commit is contained in:
Michiel Broek
2002-01-27 12:59:38 +00:00
parent 2e4eb31b7e
commit 7750952ad5
4 changed files with 29 additions and 13 deletions

View File

@@ -195,7 +195,13 @@ int pw_mkdb(char *username)
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", tempname, NULL);
} else {
syslog(LOG_WARNING, "updating the database for %s...", username);
#ifdef __FreeBSD__
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-u", username, tempname, NULL);
#elif __NetBSD__
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", tempname, NULL);
#else
#error "Not FreeBSD or NetBSD - don't know what to do"
#endif
}
pw_error((char *)_PATH_PWD_MKDB, 1, 1);
}