summaryrefslogtreecommitdiff
path: root/usr.bin/newsyslog
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-11-19 08:23:49 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-11-19 08:23:49 +0000
commit2d4e2bc7b581822f125d2b7d0c269683cc8a80c9 (patch)
tree1b307f635abc568f2951f28dda78a470638b0a4a /usr.bin/newsyslog
parentc96981fe7d5e690e29c697ff1760e58967cab898 (diff)
backout pledge completely for now, newsyslog needs chown() which is restricted
Diffstat (limited to 'usr.bin/newsyslog')
-rw-r--r--usr.bin/newsyslog/newsyslog.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c
index 2cc2aae9c5c..84106065247 100644
--- a/usr.bin/newsyslog/newsyslog.c
+++ b/usr.bin/newsyslog/newsyslog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newsyslog.c,v 1.97 2015/11/18 19:59:24 sthen Exp $ */
+/* $OpenBSD: newsyslog.c,v 1.98 2015/11/19 08:23:48 sthen Exp $ */
/*
* Copyright (c) 1999, 2002, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -191,17 +191,11 @@ main(int argc, char **argv)
struct pidinfo *pidlist, *pl;
int status, listlen;
char **av;
-
- if (pledge("stdio rpath wpath cpath fattr exec proc", NULL) == -1)
- err(1,"pledge");
parse_args(argc, argv);
argc -= optind;
argv += optind;
- if (noaction && pledge("stdio rpath", NULL) == -1)
- err(1,"pledge");
-
if (needroot && getuid() && geteuid())
errx(1, "You must be root.");