mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
8d8172514d
Here's a quick patch to: 1) Add an environment variable "SYSFS_PATH" that libsysfs will check for when getting mount point before searching system's sysfs mount point. 2) A quick fix to sysfs_get_link where the bug was. I have tested this out with libsysfs and with udev. I couldn't test with klibc because I haven't got the tree to build with klibc without my changes either. I made the link but get an error finding linux/linits.h. I will figure that out. Please have a look at the patch. If it's agreeable, please test it. I really want to add some generic path manipulation functions for the sysfs_get_link error, rather than my patch's hack. But, I haven't had time yet to do that. You really sounded like you needed this for testing, so I'm sending it out to you. I should probably add a function to set the env variable(?). |
||
---|---|---|
.. | ||
dlist.c | ||
dlist.h | ||
LGPL | ||
libsysfs.h | ||
sysfs_bus.c | ||
sysfs_class.c | ||
sysfs_device.c | ||
sysfs_dir.c | ||
sysfs_driver.c | ||
sysfs_utils.c | ||
sysfs.h |