]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libudev/libudev-device-private.c
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / src / libudev / libudev-device-private.c
index a7868a11cb20ae1543c49ca64e35297d746efd8f..70b00c1498a82613561afaa3626ea81c7347be2c 100644 (file)
@@ -52,6 +52,8 @@ int udev_device_get_ifindex(struct udev_device *udev_device) {
         assert(udev_device);
 
         r = sd_device_get_ifindex(udev_device->device, &ifindex);
+        if (r == -ENOENT)
+                return 0;
         if (r < 0)
                 return r;