From f520819102d6e13a97eaac586d57c2a35dd23ff6 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 2 Mar 2021 12:01:39 +0000 Subject: [PATCH] Better unveil error messages; requested by deraadt some time ago. --- sbin/dhcpleased/dhcpleased.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/dhcpleased/dhcpleased.c b/sbin/dhcpleased/dhcpleased.c index 1f420ae35cd..27b70e1af0e 100644 --- a/sbin/dhcpleased/dhcpleased.c +++ b/sbin/dhcpleased/dhcpleased.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpleased.c,v 1.4 2021/02/27 17:53:23 florian Exp $ */ +/* $OpenBSD: dhcpleased.c,v 1.5 2021/03/02 12:01:39 florian Exp $ */ /* * Copyright (c) 2017, 2021 Florian Obser @@ -265,13 +265,13 @@ main(int argc, char *argv[]) #endif /* SMALL */ if (unveil("/dev/bpf", "rw") == -1) - fatal("unveil"); + fatal("unveil /dev/bpf"); if (unveil(_PATH_LEASE, "rwc") == -1) - fatal("unveil"); + fatal("unveil " _PATH_LEASE); if (unveil(NULL, NULL) == -1) - fatal("unveil"); + fatal("locking unveil"); #if notyet if (pledge("stdio inet rpath wpath sendfd wroute bpf", NULL) == -1) fatal("pledge"); -- 2.20.1