From: Jorge Pereira Date: Tue, 26 Apr 2022 23:36:14 +0000 (-0300) Subject: log: Fix fr_log_init_file() 'fd' set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=900be7b96c2b3efd133ac3bd60e667d7b7cd32a9;p=thirdparty%2Ffreeradius-server.git log: Fix fr_log_init_file() 'fd' set --- diff --git a/src/lib/util/log.c b/src/lib/util/log.c index 876850d338a..b7cdf3fd038 100644 --- a/src/lib/util/log.c +++ b/src/lib/util/log.c @@ -1096,6 +1096,7 @@ int fr_log_init_file(fr_log_t *log, char const *file) } setlinebuf(log->handle); + log->fd = fileno(log->handle); return 0; }