summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rpki-client/main.c')
-rw-r--r--usr.sbin/rpki-client/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 2e8645d673a..5e1581da377 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.188 2022/02/10 11:14:04 tb Exp $ */
+/* $OpenBSD: main.c,v 1.189 2022/02/10 18:58:46 tb Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -696,7 +696,7 @@ check_fs_size(int fd, const char *cachedir)
err(1, "statfs %s", cachedir);
if (fs.f_bavail < minsize / fs.f_frsize ||
- (fs.f_favail > 0 && fs.f_favail < minnode)) {
+ (fs.f_ffree > 0 && fs.f_favail < minnode)) {
fprintf(stderr, "WARNING: rpki-client may need more than "
"the available disk space\n"
"on the file-system holding %s.\n", cachedir);