]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
typos
authorAlan T. DeKok <aland@freeradius.org>
Tue, 28 Mar 2023 00:49:21 +0000 (09:49 +0900)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 28 Mar 2023 00:49:21 +0000 (09:49 +0900)
src/lib/server/cf_file.c

index da9506782c016cc17fbc73095018bb91974d384d..8e82d24fb5822cdbc84f527001d5105bad9ffa80 100644 (file)
@@ -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;
                                }