summaryrefslogtreecommitdiffstats
path: root/crypto/store/loader_file.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2019-07-31 15:24:20 -0400
committerRichard Levitte <levitte@openssl.org>2019-08-02 11:41:54 +0200
commitff988500c2f39ae61b2836167b6e0e7b2021220c (patch)
treeead6acf74e2cf8c8be430e02f78dddcf8281b0cc /crypto/store/loader_file.c
parent823ee00a396f91df4517af13dafae679ae10b3f4 (diff)
Replace FUNCerr with ERR_raise_data
Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9496)
Diffstat (limited to 'crypto/store/loader_file.c')
-rw-r--r--crypto/store/loader_file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/store/loader_file.c b/crypto/store/loader_file.c
index ab59fabfec..206af12af6 100644
--- a/crypto/store/loader_file.c
+++ b/crypto/store/loader_file.c
@@ -824,8 +824,9 @@ static OSSL_STORE_LOADER_CTX *file_open(const OSSL_STORE_LOADER *loader,
}
if (stat(path_data[i].path, &st) < 0) {
- FUNCerr("stat", errno);
- ERR_add_error_data(1, path_data[i].path);
+ ERR_raise_data(ERR_LIB_SYS, errno,
+ "calling stat(%s)",
+ path_data[i].path);
} else {
path = path_data[i].path;
}