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:
parent
b08c3fbe0e
commit
70c35e4bfd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user