From d4b828f8d66b83749a1a43d298053c67dd7d29b6 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 10 Nov 2020 15:23:59 -0500 Subject: Report paths in unveil errors --- bounce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bounce.c') diff --git a/bounce.c b/bounce.c index 381e334..ec1925c 100644 --- a/bounce.c +++ b/bounce.c @@ -140,7 +140,7 @@ static void unveilParent(const char *path, const char *mode) { char *base = strrchr(buf, '/'); if (base) *base = '\0'; int error = unveil((base ? buf : "."), mode); - if (error && errno != ENOENT) err(EX_OSERR, "unveil"); + if (error && errno != ENOENT) err(EX_NOINPUT, "%s", path); } static void unveilTarget(const char *path, const char *mode) { @@ -166,7 +166,7 @@ static void unveilData(const char *path) { const char *dirs = NULL; for (const char *abs; NULL != (abs = dataPath(&dirs, path));) { int error = unveil(abs, "rwc"); - if (error && errno != ENOENT) err(EX_OSERR, "unveil"); + if (error && errno != ENOENT) err(EX_CANTCREAT, "%s", abs); } } #endif /* __OpenBSD__ */ -- cgit 1.4.1 tls/log/man/tls_accept_socket.3?h=3.3.3p1&showmsg=1&follow=1'>log tree commit diff
path: root/man/tls_accept_socket.3 (unfollow)
Commit message (Collapse)Author
2021-05-25build: Add scripts to EXTRA_DISTJune McEnroe
2021-05-25import: Add missing scripts/wrap-compiler-for-flag-checkJune McEnroe
2021-05-08Import LibreSSL 3.3.3June McEnroe
2021-04-18build: Remove added x509_verify.3 links 3.3.2June McEnroe
2021-04-18tls: Use EC_KEY_set_ex_dataJune McEnroe
2021-04-18Import LibreSSL 3.3.2June McEnroe
2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe
2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe
Some compat sources (getentropy_linux.c for example) require OpenSSL. Reported by Robert Scheck.
2020-12-15Import LibreSSL 3.3.1June McEnroe
2020-11-24Import LibreSSL 3.3.0June McEnroe
2020-10-22Import LibreSSL 3.2.2June McEnroe
2020-09-29Import LibreSSL 3.2.1June McEnroe
2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe
2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe
2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe