From: claudio Date: Wed, 3 Feb 2021 09:29:22 +0000 (+0000) Subject: Use mkpath() == -1 to check for failure. No functional change. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8876e9357e8d39184d8c75e587da5e03cbad1562;p=openbsd Use mkpath() == -1 to check for failure. No functional change. --- 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. */