summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-02-10 18:58:47 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-02-10 18:58:47 +0000
commitdd084becb1faf1e269bb61e1d9359061763cb29f (patch)
tree6e12416e7afc61acdd1c1b40c47d52f5fd330086 /usr.sbin/rpki-client
parent06a175e8addff1a016158530699f6c064fee1275 (diff)
Improve free inodes check from fs.f_favail > 0 to fs.f_free > 0.
suggested by millert
Diffstat (limited to 'usr.sbin/rpki-client')
-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);