From: Jorge Pereira Date: Thu, 25 Jun 2015 17:55:23 +0000 (-0300) Subject: The fr_strerror() is useless when called by non-library context. better call fr_syser... X-Git-Tag: release_3_0_9~81^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1069%2Fhead;p=thirdparty%2Ffreeradius-server.git The fr_strerror() is useless when called by non-library context. better call fr_syserror() when in POSIX contexts, eg: stat() --- diff --git a/src/main/conffile.c b/src/main/conffile.c index 8b3ace0799..83394f2cd9 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -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; }