summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2020-07-31 09:57:38 +0000
committerclaudio <claudio@openbsd.org>2020-07-31 09:57:38 +0000
commita161026484e8b57c2d6df4ee2a81e6e8ec6d7e4c (patch)
tree7fbb442b78f2f802d6209c9c02c5a0898f545735
parentMake writes to the coverage buffer MP-safe using atomic operations. (diff)
downloadwireguard-openbsd-a161026484e8b57c2d6df4ee2a81e6e8ec6d7e4c.tar.xz
wireguard-openbsd-a161026484e8b57c2d6df4ee2a81e6e8ec6d7e4c.zip
Replace warnc() with warnx() + strerror() since the first is less portable.
Should hopefully fix an issue seen by Robert Scheck OK deraadt@
-rw-r--r--usr.sbin/rpki-client/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 012e9d7c244..2946806ee7d 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.73 2020/07/28 13:52:18 beck Exp $ */
+/* $OpenBSD: main.c,v 1.74 2020/07/31 09:57:38 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -1552,7 +1552,8 @@ repo_cleanup(const char *cachedir, struct repotab *rt)
break;
case FTS_NS:
case FTS_ERR:
- warnc(e->fts_errno, "fts_read %s", e->fts_path);
+ warnx("fts_read %s: %s", e->fts_path,
+ strerror(e->fts_errno));
break;
default:
warnx("unhandled[%x] %s", e->fts_info,