From: Yu Watanabe Date: Wed, 7 Apr 2021 10:19:45 +0000 (+0900) Subject: udev: it is not necessary that the path is readable X-Git-Tag: v249-rc1~461^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70c35e4bfd64f24c7cb3536bdf63af537e0f2971;p=thirdparty%2Fsystemd.git udev: it is not necessary that the path is readable --- diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c index 53653c492a8..c6f2e6ddf51 100644 --- a/src/udev/udev-builtin-net_id.c +++ b/src/udev/udev-builtin-net_id.c @@ -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