summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb
diff options
context:
space:
mode:
authorsemarie <semarie@openbsd.org>2015-11-05 15:10:11 +0000
committersemarie <semarie@openbsd.org>2015-11-05 15:10:11 +0000
commitddd71a3cd45fb5dc5ab07c31a6a210206b67a7f1 (patch)
treefcf380a16b64b3f1c9c2c685994b548a64f85e72 /usr.sbin/pwd_mkdb
parentquick fix for a regression introduced by sys/kern/kern_pledge.c 1.103 (diff)
downloadwireguard-openbsd-ddd71a3cd45fb5dc5ab07c31a6a210206b67a7f1.tar.xz
wireguard-openbsd-ddd71a3cd45fb5dc5ab07c31a6a210206b67a7f1.zip
revert sys/kern/kern_pledge.c 1.103 and reenable pledge in pwd_mkdb
ok deraadt@
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index c1a2c76f831..35648a44721 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwd_mkdb.c,v 1.52 2015/11/05 13:48:51 semarie Exp $ */
+/* $OpenBSD: pwd_mkdb.c,v 1.53 2015/11/05 15:10:11 semarie Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -233,10 +233,8 @@ main(int argc, char **argv)
warn("%s: unable to make group readable", _PATH_SMP_DB);
clean |= FILE_SECURE;
-#if 0
if (pledge("stdio rpath wpath cpath getpw fattr flock", NULL) == -1)
err(1, "pledge");
-#endif
/* Open the temporary insecure password database. */
if (!secureonly) {