tls: use ENOTDIR in tls_add_cafile_path if capath is not a dir
MODIFY
src/tls/openssl/tls.c
src/tls/openssl/tls.c
@@ -270,7 +270,7 @@ int tls_add_cafile_path(struct tls *tls, const char *cafile,
if (capath && !fs_isdir(capath)) {
DEBUG_WARNING("capath is not a directory\n");
- return ENOENT;
+ return ENOTDIR;
}
/* Load the CAs we trust */

tls: use ENOTDIR in tls_add_cafile_path if capath is not a dir