udev: warn on rules files with weird access modes

This commit is contained in:
Lennart Poettering 2019-07-29 15:59:20 +02:00
parent 875d22d8f1
commit 1f57abb309

View File

@ -1186,6 +1186,8 @@ static int parse_file(UdevRules *rules, const char *filename) {
return -errno;
}
(void) fd_warn_permissions(filename, fileno(f));
if (null_or_empty_fd(fileno(f))) {
log_debug("Skipping empty file: %s", filename);
return 0;