1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-07 17:17:44 +03:00

udev: it is not necessary that the path is readable

This commit is contained in:
Yu Watanabe 2021-04-07 19:19:45 +09:00
parent b08c3fbe0e
commit 70c35e4bfd

View File

@ -363,7 +363,7 @@ static int dev_pci_slot(sd_device *dev, struct netnames *names) {
if (safe_atoi(attr, &function_id) >= 0 &&
asprintf(&str, "%s/%08x/", slots, function_id) >= 0 &&
access(str, R_OK) == 0) {
access(str, F_OK) == 0) {
hotplug_slot = function_id;
domain = 0;
} else