mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
udev: warn on rules files with weird access modes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user