mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
[PATCH] libsysfs: work around a klibc bug
This commit is contained in:
parent
fd9efc00a2
commit
3f930093f9
@ -111,7 +111,7 @@ static void set_classdev_classname(struct sysfs_class_device *cdev)
|
||||
if (c == NULL) {
|
||||
c = strstr(cdev->path, SYSFS_BLOCK_NAME);
|
||||
} else {
|
||||
c = strstr(c, "/");
|
||||
c = strchr(c, '/');
|
||||
}
|
||||
|
||||
if (c == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user