[rdc] add missing kernel symbol
[openwrt.git] / package / hotplug2 / patches / 120-sysfs_path_fix.patch
1 --- a/rules/command.c
2 +++ b/rules/command.c
3 @@ -374,9 +374,9 @@ RULES_COMMAND_F(cmd_firmware) {
4 if (firmware == NULL)
5 return -1;
6
7 - if (snprintf(sysfs_path_loading, PATH_MAX, "/sysfs%s/loading", devpath) >= PATH_MAX)
8 + if (snprintf(sysfs_path_loading, PATH_MAX, "/sys%s/loading", devpath) >= PATH_MAX)
9 return -1;
10 - if (snprintf(sysfs_path_data, PATH_MAX, "/sysfs%s/data", devpath) >= PATH_MAX)
11 + if (snprintf(sysfs_path_data, PATH_MAX, "/sys%s/data", devpath) >= PATH_MAX)
12 return -1;
13 if (snprintf(firmware_path, PATH_MAX, "%s/%s", argv[0], firmware) >= PATH_MAX)
14 return -1;
This page took 0.051701 seconds and 5 git commands to generate.