2741a666d4
Changes since 8.2.24: -- Noteworthy changes in version 8.2.25 (2019-04-24) o) The 'class::number_per_ip', 'class::max_local' and 'class::max_global' configuration directives have been replaced with just 'class::number_per_ip_local' and 'class::number_per_ip_global'. The 'class::max_local' basically was redundant as it had the same functionality as 'class::number_per_ip' o) Adding RESVs with wildcards no longer requires administrator privileges o) The 'general::ignore_bogus_ts' configuration option has been deprecated o) TLSv1.1 and TLSv1.0 are no longer supported and have been disabled in the openssl and gnutls module o) Minimum supported OpenSSL version is 1.0.1f now o) Minimum supported GnuTLS version is 3.5.8 now o) The 'serverinfo::vhost' and 'serverinfo:vhost6' configuration directives have been deprecated. If you need to bind() a specific address you can specify one in the connect {} block o) The 'connect::vhost' configuration directive has been renamed to 'connect::bind'
21 lines
662 B
C
21 lines
662 B
C
$NetBSD: patch-src_ircd.c,v 1.2 2019/05/18 20:34:56 fox Exp $
|
|
|
|
Properly check for possible fgets(3) errors (otherwise possible
|
|
unrelated errors are logged).
|
|
|
|
--- src/ircd.c.orig 2019-04-24 17:50:27.000000000 +0000
|
|
+++ src/ircd.c
|
|
@@ -236,8 +236,11 @@ check_pidfile(const char *filename)
|
|
if ((fb = fopen(filename, "r")))
|
|
{
|
|
if (fgets(buf, 20, fb) == NULL)
|
|
- ilog(LOG_TYPE_IRCD, "Error reading from pid file %s: %s",
|
|
- filename, strerror(errno));
|
|
+ {
|
|
+ if (ferror(fb))
|
|
+ ilog(LOG_TYPE_IRCD, "Error reading from pid file %s: %s",
|
|
+ filename, strerror(errno));
|
|
+ }
|
|
else
|
|
{
|
|
pid_t pid = atoi(buf);
|