I typoed the file argument to getline() in rev 1.14 when converting
fgetln remnants to getline back in aug 2022. guess not many people
are hosting hunt servers.
-/* $OpenBSD: conf.c,v 1.14 2022/08/08 17:57:05 op Exp $ */
+/* $OpenBSD: conf.c,v 1.15 2024/08/28 15:51:01 op Exp $ */
/* David Leonard <d@openbsd.org>, 1999. Public domain. */
#include <sys/select.h>
size_t linesize = 0;
ssize_t linelen;
- while ((linelen = getline(&line, &linesize, stdin)) != -1) {
+ while ((linelen = getline(&line, &linesize, f)) != -1) {
lineno++;
if (line[linelen - 1] == '\n')
line[linelen - 1] = '\0';