added an error message when strongswan.conf cannot be read
This commit is contained in:
@@ -379,6 +379,7 @@ settings_t *settings_create(char *file)
|
||||
fd = fopen(file, "r");
|
||||
if (fd == NULL)
|
||||
{
|
||||
DBG1("'%s' does not exist or is not readable", file);
|
||||
return &this->public;
|
||||
}
|
||||
fseek(fd, 0, SEEK_END);
|
||||
|
||||
Reference in New Issue
Block a user