mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-14 10:37:11 +07:00
use libsysfs to translate the class linke to the device path
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
parent
8ebe9547a8
commit
0747dd884a
@ -139,7 +139,7 @@ static int add_device(const char *devpath, const char *subsystem)
|
||||
return -1;
|
||||
}
|
||||
|
||||
udev_init_device(&udev, devpath, subsystem, "add");
|
||||
udev_init_device(&udev, &class_dev->path[strlen(sysfs_path)], subsystem, "add");
|
||||
udev.devt = get_devt(class_dev);
|
||||
if (!udev.devt && udev.type != DEV_NET) {
|
||||
dbg("sysfs_open_class_device_path failed");
|
||||
|
Loading…
Reference in New Issue
Block a user