udev: warn on rules files with weird access modes
This commit is contained in:
parent
875d22d8f1
commit
1f57abb309
|
@ -1186,6 +1186,8 @@ static int parse_file(UdevRules *rules, const char *filename) {
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(void) fd_warn_permissions(filename, fileno(f));
|
||||||
|
|
||||||
if (null_or_empty_fd(fileno(f))) {
|
if (null_or_empty_fd(fileno(f))) {
|
||||||
log_debug("Skipping empty file: %s", filename);
|
log_debug("Skipping empty file: %s", filename);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue