mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-25 20:28:21 +00:00
It is not an error if /etc/sensors.d doesn't exist.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5656 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
0d394245dc
commit
680d5515f6
1 file changed
+4
@@ -125,6 +125,10 @@ static int add_config_from_dir(const char *dir)
|
|||||||
|
|
||||||
count = scandir(dir, &namelist, config_file_filter, alphasort);
|
count = scandir(dir, &namelist, config_file_filter, alphasort);
|
||||||
if (count < 0) {
|
if (count < 0) {
|
||||||
|
/* Do not return an error if directory does not exist */
|
||||||
|
if (errno == ENOENT)
|
||||||
|
return 0;
|
||||||
|
|
||||||
sensors_parse_error_wfn(strerror(errno), NULL, 0);
|
sensors_parse_error_wfn(strerror(errno), NULL, 0);
|
||||||
return -SENSORS_ERR_PARSE;
|
return -SENSORS_ERR_PARSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user