mirror of
https://github.com/systemd/systemd.git
synced 2024-12-02 23:03:50 +08:00
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;
|
||||
}
|
||||
|
||||
(void) fd_warn_permissions(filename, fileno(f));
|
||||
|
||||
if (null_or_empty_fd(fileno(f))) {
|
||||
log_debug("Skipping empty file: %s", filename);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user