diff --git a/tpws/tpws.c b/tpws/tpws.c index 383edef..e67b3b3 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -1087,7 +1087,7 @@ static bool read_system_maxfiles(rlim_t *maxfile) return false; n=fscanf(F,"%ju",&um); fclose(F); - if (!n) return false; + if (n != 1) return false; *maxfile = (rlim_t)um; return true; #elif defined(BSD)