summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/snmpe.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-09-06 13:32:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-09-06 13:32:19 +0000
commit61e55104902d17834e27880ca0f207249a37c46f (patch)
treedb538cb6db9843e66b8c1e8a0516f33b8f15810d /usr.sbin/snmpd/snmpe.c
parent2b0390da42afe73f604d72f63adf5699da8b9d3f (diff)
repair missing paths on unveil failure
Diffstat (limited to 'usr.sbin/snmpd/snmpe.c')
-rw-r--r--usr.sbin/snmpd/snmpe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c
index 5d8c7ab0c92..026cfd36d0b 100644
--- a/usr.sbin/snmpd/snmpe.c
+++ b/usr.sbin/snmpd/snmpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpe.c,v 1.75 2021/09/02 05:41:02 martijn Exp $ */
+/* $OpenBSD: snmpe.c,v 1.76 2021/09/06 13:32:18 deraadt Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -116,7 +116,7 @@ snmpe_init(struct privsep *ps, struct privsep_proc *p, void *arg)
/* no filesystem visibility */
if (unveil("/", "") == -1)
- fatal("unveil");
+ fatal("unveil /");
if (unveil(NULL, NULL) == -1)
fatal("unveil");