summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2018-08-04 03:23:08 +0000
committerderaadt <deraadt@openbsd.org>2018-08-04 03:23:08 +0000
commit52612c9b82dd783681a6ae9677b40d40be5886df (patch)
tree8cf92fdf9eee6229b1bcb7a3b282828a14c3a11a
parentinvalidate dh->priv_key after freeing it in error path; avoids (diff)
downloadwireguard-openbsd-52612c9b82dd783681a6ae9677b40d40be5886df.tar.xz
wireguard-openbsd-52612c9b82dd783681a6ae9677b40d40be5886df.zip
I can find no reason why portmap needs rpath after initialization.
-rw-r--r--usr.sbin/portmap/portmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c
index 9fbb27c4b77..e7eea45b43f 100644
--- a/usr.sbin/portmap/portmap.c
+++ b/usr.sbin/portmap/portmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: portmap.c,v 1.48 2015/10/14 13:32:44 jsg Exp $ */
+/* $OpenBSD: portmap.c,v 1.49 2018/08/04 03:23:08 deraadt Exp $ */
/*-
* Copyright (c) 1996, 1997 Theo de Raadt (OpenBSD). All rights reserved.
@@ -247,7 +247,7 @@ main(int argc, char *argv[])
}
endpwent();
- if (pledge("stdio rpath inet proc", NULL) == -1)
+ if (pledge("stdio inet proc", NULL) == -1)
err(1, "pledge");
if (svc_register(xprt, PMAPPROG, PMAPVERS, reg_service, FALSE) == 0) {
@@ -609,7 +609,7 @@ callit(struct svc_req *rqstp, SVCXPRT *xprt)
return;
}
- if (pledge("stdio rpath inet", NULL) == -1)
+ if (pledge("stdio inet", NULL) == -1)
err(1, "pledge");
port = pml->pml_map.pm_port;