udev: save stats of all udev rules file
The mtime of directory is not updated when an existing rule file is changed. Hence, paths_check_timestamp() is not reliable.
This commit is contained in:
@@ -445,7 +445,7 @@ int config_parse(
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int hashmap_put_stats_by_path(Hashmap **stats_by_path, const char *path, const struct stat *st) {
|
||||
int hashmap_put_stats_by_path(Hashmap **stats_by_path, const char *path, const struct stat *st) {
|
||||
_cleanup_free_ struct stat *st_copy = NULL;
|
||||
_cleanup_free_ char *path_copy = NULL;
|
||||
int r;
|
||||
|
||||
Reference in New Issue
Block a user