From: florian Date: Tue, 2 Mar 2021 12:01:39 +0000 (+0000) Subject: Better unveil error messages; requested by deraadt some time ago. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f520819102d6e13a97eaac586d57c2a35dd23ff6;p=openbsd Better unveil error messages; requested by deraadt some time ago. --- 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");