diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-02-03 09:29:23 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-02-03 09:29:23 +0000 |
commit | 2d5e7025c0889a7abacd5bdd7d17764fd91e9f52 (patch) | |
tree | cb76f2efa95a2eef3c277e59b86345a71f7eea97 /usr.sbin/rpki-client/rsync.c | |
parent | 5270eb1d260cad03eb153836a9edc4ec0caf953d (diff) |
Use mkpath() == -1 to check for failure. No functional change.
Diffstat (limited to 'usr.sbin/rpki-client/rsync.c')
-rw-r--r-- | usr.sbin/rpki-client/rsync.c | 4 |
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. */ |