summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2021-02-03 09:29:22 +0000
committerclaudio <claudio@openbsd.org>2021-02-03 09:29:22 +0000
commit8876e9357e8d39184d8c75e587da5e03cbad1562 (patch)
treeba323b90b46b96b33f85ade01230a38c725c866f
parentchange pf_route so pf only runs when packets enter and leave the stack. (diff)
downloadwireguard-openbsd-8876e9357e8d39184d8c75e587da5e03cbad1562.tar.xz
wireguard-openbsd-8876e9357e8d39184d8c75e587da5e03cbad1562.zip
Use mkpath() == -1 to check for failure. No functional change.
-rw-r--r--usr.sbin/rpki-client/rsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/rsync.c b/usr.sbin/rpki-client/rsync.c
index 9181c1b3cf2..4500be20434 100644
--- a/usr.sbin/rpki-client/rsync.c
+++ b/usr.sbin/rpki-client/rsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsync.c,v 1.15 2021/02/02 18:35:38 claudio Exp $ */
+/* $OpenBSD: rsync.c,v 1.16 2021/02/03 09:29:22 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -327,7 +327,7 @@ proc_rsync(char *prog, char *bind_addr, int fd)
* will not build the destination for us.
*/
- if (mkpath(dst))
+ if (mkpath(dst) == -1)
err(1, "%s", dst);
/* Run process itself, wait for exit, check error. */