summaryrefslogtreecommitdiff
path: root/xserver/os
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-09-06 13:33:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-09-06 13:33:12 +0000
commitac84aa63606be1381cde78da15d054e26a4e1ab3 (patch)
treec20e2981aace239e65b63fc62179d350d9855092 /xserver/os
parentd2304921fa559cbe22e94700caeed9d28ef093e5 (diff)
missing pathnames on unveil() error
Diffstat (limited to 'xserver/os')
-rw-r--r--xserver/os/privsep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xserver/os/privsep.c b/xserver/os/privsep.c
index bbe9222c8..c2ba8cf5a 100644
--- a/xserver/os/privsep.c
+++ b/xserver/os/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.34 2021/02/12 12:51:53 jsg Exp $ */
+/* $OpenBSD: privsep.c,v 1.35 2021/09/06 13:33:11 deraadt Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -287,7 +287,7 @@ priv_init(uid_t uid, gid_t gid)
for (dev = allowed_devices; dev->name != NULL; dev++) {
if (unveil(dev->name, "rw") == -1 && errno != ENOENT)
- err(1, "unveil");
+ err(1, "unveil %s", dev->name);
}
if (pledge("stdio rpath wpath sendfd proc", NULL) == -1)
err(1, "pledge");