diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-09-06 13:32:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-09-06 13:32:19 +0000 |
commit | 61e55104902d17834e27880ca0f207249a37c46f (patch) | |
tree | db538cb6db9843e66b8c1e8a0516f33b8f15810d /usr.sbin/rarpd | |
parent | 2b0390da42afe73f604d72f63adf5699da8b9d3f (diff) |
repair missing paths on unveil failure
Diffstat (limited to 'usr.sbin/rarpd')
-rw-r--r-- | usr.sbin/rarpd/rarpd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index d56d2e3bd8e..7eff3d39239 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rarpd.c,v 1.77 2020/12/29 19:47:40 benno Exp $ */ +/* $OpenBSD: rarpd.c,v 1.78 2021/09/06 13:32:18 deraadt Exp $ */ /* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */ /* @@ -83,9 +83,9 @@ void rarp_reply(struct if_info *, struct if_addr *, struct ether_header *, u_int32_t, struct hostent *); void arptab_init(void); int arptab_set(u_char *, u_int32_t); -__dead void error(const char *,...); -void warning(const char *,...); -void debug(const char *,...); +__dead void error(const char *, ...); +void warning(const char *, ...); +void debug(const char *, ...); u_int32_t ipaddrtonetmask(u_int32_t); int rarp_bootable(u_int32_t); @@ -341,9 +341,9 @@ rarp_loop(void) arptab_init(); if (unveil(TFTP_DIR, "r") == -1) - error("unveil"); + error("unveil %s", TFTP_DIR); if (unveil("/etc/ethers", "r") == -1) - error("unveil"); + error("unveil /etc/ethers"); if (pledge("stdio rpath dns", NULL) == -1) error("pledge"); |