diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2021-07-12 15:09:23 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2021-07-12 15:09:23 +0000 |
commit | 73e82762d46ada77045a4c76185bdd75e2e712c3 (patch) | |
tree | 1e6fb3124598f66f9f86720c24b0174176b345c2 /usr.sbin/vmctl/main.c | |
parent | e8f12d212e4dfa88699628d0df2a4e442a348350 (diff) |
Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.
Work done and verified by Ashton Fagg <ashton@fagg.id.au>
ok deraadt@ semarie@ claudio@
Diffstat (limited to 'usr.sbin/vmctl/main.c')
-rw-r--r-- | usr.sbin/vmctl/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c index eb1827689f9..0f7e4329a00 100644 --- a/usr.sbin/vmctl/main.c +++ b/usr.sbin/vmctl/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.67 2021/06/28 14:01:38 tb Exp $ */ +/* $OpenBSD: main.c,v 1.68 2021/07/12 15:09:22 beck Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -197,7 +197,7 @@ vmmaction(struct parse_result *res) if (ctl_sock == -1) { if (unveil(SOCKET_NAME, "r") == -1) - err(1, "unveil"); + err(1, "unveil %s", SOCKET_NAME); if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0)) == -1) err(1, "socket"); @@ -1023,7 +1023,7 @@ ctl_openconsole(const char *name) { closefrom(STDERR_FILENO + 1); if (unveil(VMCTL_CU, "x") == -1) - err(1, "unveil"); + err(1, "unveil %s", VMCTL_CU); execl(VMCTL_CU, VMCTL_CU, "-r", "-l", name, "-s", "115200", (char *)NULL); err(1, "failed to open the console"); |