diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-17 18:08:11 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-18 13:04:37 +0200 |
commit | 9a1fe66f08149596567fedb4e2338ae786a19ab9 (patch) | |
tree | 562ee2eedc17f0dd83f62890d3b4d12f02ee5a72 /p11-kit | |
parent | e403f7b33ac35e961c72ed1b6335bbe3084e4642 (diff) |
Avoid using the non-thread-safe strerror() function
https://bugzilla.redhat.com/show_bug.cgi?id=985481
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/conf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/p11-kit/conf.c b/p11-kit/conf.c index 83ee7ca..0ecb40a 100644 --- a/p11-kit/conf.c +++ b/p11-kit/conf.c @@ -118,8 +118,7 @@ _p11_conf_parse_file (const char* filename, int flags) p11_debug ("config file is inaccessible"); } else { - p11_message ("couldn't open config file: %s: %s", filename, - strerror (error)); + p11_message_err (error, "couldn't open config file: %s", filename); errno = error; return NULL; } @@ -400,8 +399,7 @@ load_configs_from_directory (const char *directory, p11_debug ("couldn't list inacessible module configs"); return true; } - p11_message ("couldn't list directory: %s: %s", directory, - strerror (error)); + p11_message_err (error, "couldn't list directory: %s", directory); errno = error; return false; } |