From: Alan T. DeKok Date: Tue, 28 Mar 2023 00:49:21 +0000 (+0900) Subject: typos X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79e4c96231b36154042b37b9b03d80724cd6b87c;p=thirdparty%2Ffreeradius-server.git typos --- diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index da9506782c0..8e82d24fb58 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -248,9 +248,7 @@ char const *cf_expand_variables(char const *cf, int lineno, int fd = open(name, O_RDONLY); struct stat buf; - fprintf(stderr, "%s[%d]:READING %s\n", cf, lineno, name); - - if (!fd) { + if (fd < 0) { ERROR("%s[%d]: Reference \"${%s}\" failed opening file - %s", cf, lineno, name, fr_syserror(errno)); return NULL; }