install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc
install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
- pwd_mkdb -p -d ${DESTDIR} /etc/master.passwd
+ pwd_mkdb -p -d ${DESTDIR}/etc /etc/master.passwd
install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
(cd root; \
#ifndef lint
/*static char sccsid[] = "from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";*/
-static char *rcsid = "$Id: pwd_mkdb.c,v 1.2 1996/04/23 21:55:49 deraadt Exp $";
+static char *rcsid = "$Id: pwd_mkdb.c,v 1.3 1996/05/04 08:13:54 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
/* We don't care what the user wants. */
(void)umask(0);
- pname = *argv;
+ pname = strdup(changedir(*argv, basedir));
/* Open the original password file */
if (!(fp = fopen(pname, "r")))
error(pname);