artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2516491
)
Use mkpath() == -1 to check for failure. No functional change.
author
claudio
<claudio@openbsd.org>
Wed, 3 Feb 2021 09:29:22 +0000
(09:29 +0000)
committer
claudio
<claudio@openbsd.org>
Wed, 3 Feb 2021 09:29:22 +0000
(09:29 +0000)
usr.sbin/rpki-client/rsync.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rpki-client/rsync.c
b/usr.sbin/rpki-client/rsync.c
index
9181c1b
..
4500be2
100644
(file)
--- a/
usr.sbin/rpki-client/rsync.c
+++ b/
usr.sbin/rpki-client/rsync.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rsync.c,v 1.1
5 2021/02/02 18:35:38
claudio Exp $ */
+/* $OpenBSD: rsync.c,v 1.1
6 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. */