summaryrefslogtreecommitdiff
path: root/main/openvpn/src/openvpn/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/openvpn/src/openvpn/misc.c')
-rw-r--r--main/openvpn/src/openvpn/misc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/openvpn/src/openvpn/misc.c b/main/openvpn/src/openvpn/misc.c
index 7483184f..63b4c1cf 100644
--- a/main/openvpn/src/openvpn/misc.c
+++ b/main/openvpn/src/openvpn/misc.c
@@ -861,6 +861,12 @@ test_file (const char *filename)
fclose (fp);
ret = true;
}
+ else
+ {
+ if( openvpn_errno () == EACCES ) {
+ msg( M_WARN | M_ERRNO, "Could not access file '%s'", filename);
+ }
+ }
}
dmsg (D_TEST_FILE, "TEST FILE '%s' [%d]",