From 8876e9357e8d39184d8c75e587da5e03cbad1562 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 3 Feb 2021 09:29:22 +0000 Subject: [PATCH] Use mkpath() == -1 to check for failure. No functional change. --- usr.sbin/rpki-client/rsync.c | 4 ++-- 1 file 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 * @@ -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. */ -- 2.20.1