diff options
Diffstat (limited to 'lib/sysfs_device.c')
-rw-r--r-- | lib/sysfs_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sysfs_device.c b/lib/sysfs_device.c index e212056..635ba64 100644 --- a/lib/sysfs_device.c +++ b/lib/sysfs_device.c @@ -142,6 +142,7 @@ struct sysfs_device *sysfs_open_device(const unsigned char *path) } dev->directory = sdir; strcpy(dev->bus_id, sdir->name); + strcpy(dev->path, sdir->path); /* * The "name" attribute no longer exists... return the device's |