-/* $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>
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);