]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
The fr_strerror() is useless when called by non-library context. better call fr_syser... 1069/head
authorJorge Pereira <jpereiran@gmail.com>
Thu, 25 Jun 2015 17:55:23 +0000 (14:55 -0300)
committerJorge Pereira <jpereiran@gmail.com>
Thu, 25 Jun 2015 17:55:23 +0000 (14:55 -0300)
src/main/conffile.c

index 8b3ace0799bd782a00ee2f0336f11e73448176b8..83394f2cd98ec505a145e548793c0b46a393169d 100644 (file)
@@ -378,8 +378,7 @@ static bool cf_file_input(CONF_SECTION *cs, char const *filename)
        file->input = true;
 
        if (stat(filename, &file->buf) < 0) {
-               ERROR("Unable to open file \"%s\": %s",
-                     filename, fr_strerror());
+               ERROR("Unable to open file \"%s\": %s", filename, fr_syserror(errno));
                talloc_free(file);
                return false;
        }