aboutsummaryrefslogtreecommitdiff
path: root/sbin/savecore
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-01-02 17:34:25 +0000
committerMark Johnston <markj@FreeBSD.org>2019-01-02 17:34:25 +0000
commit2e4c75c15e371259268af9dd943589bc3e6bea76 (patch)
treec43b47e263540e464bad0e0642eb8ec3c7249d50 /sbin/savecore
parent0fe1808c72685b3285daf46c041b7792e08fcd1b (diff)
Notes
Diffstat (limited to 'sbin/savecore')
-rw-r--r--sbin/savecore/savecore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index bd9d2e47e98d..4655818a63e5 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -258,7 +258,7 @@ writebounds(int savedirfd, int bounds)
FILE *fp;
if ((fp = xfopenat(savedirfd, "bounds", O_WRONLY | O_CREAT | O_TRUNC,
- "w", 0644)) < 0) {
+ "w", 0644)) == NULL) {
logmsg(LOG_WARNING, "unable to write to bounds file: %m");
return;
}