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:
Jean Delvare committed 2009-02-18 10:17:13 +00:00
1 parent 0d394245dc
commit 680d5515f6
1 file changed
+4
+4
View File
@@ -125,6 +125,10 @@ static int add_config_from_dir(const char *dir)
count = scandir(dir, &namelist, config_file_filter, alphasort);
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);
return -SENSORS_ERR_PARSE;
}