From b273be21a721b6ac6c4b57e991de3c672ec8313b Mon Sep 17 00:00:00 2001 From: Jorge Pereira Date: Thu, 25 Jun 2015 14:55:23 -0300 Subject: [PATCH] The fr_strerror() is useless when called by non-library context. better call fr_syserror() when in POSIX contexts, eg: stat() --- src/main/conffile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.47.2