mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 02:45:07 -05:00
client: describe error when could not open config or keyfile
This commit is contained in:
4
client.c
4
client.c
@@ -2616,7 +2616,7 @@ authenticate_from_config(const char *filename)
|
|||||||
|
|
||||||
in = fopen(filename, "r");
|
in = fopen(filename, "r");
|
||||||
if (!in) {
|
if (!in) {
|
||||||
fprintf(stderr, "Could not open file %s\n", filename);
|
fprintf(stderr, "Could not open file %s : %s\n", filename, strerror(errno));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2641,7 +2641,7 @@ authenticate_from_config(const char *filename)
|
|||||||
|
|
||||||
in = fopen(keyfile, "r");
|
in = fopen(keyfile, "r");
|
||||||
if (!in) {
|
if (!in) {
|
||||||
fprintf(stderr, "Could not open keyfile %s\n", keyfile);
|
fprintf(stderr, "Could not open keyfile %s : %s\n", keyfile, strerror(errno));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user