From faa5c352096032d16299b21dace15067d7a320d9 Mon Sep 17 00:00:00 2001 From: acinonyx Date: Sat, 3 Apr 2010 18:09:04 +0000 Subject: [package] hotplug2: Fix sysfs path (#7031) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20679 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/hotplug2/patches/120-sysfs_path_fix.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/hotplug2/patches/120-sysfs_path_fix.patch (limited to 'package/hotplug2') diff --git a/package/hotplug2/patches/120-sysfs_path_fix.patch b/package/hotplug2/patches/120-sysfs_path_fix.patch new file mode 100644 index 000000000..2b032a9d4 --- /dev/null +++ b/package/hotplug2/patches/120-sysfs_path_fix.patch @@ -0,0 +1,15 @@ +diff -x '*~' -Naur hotplug2-201/rules/command.c hotplug2-201.patched/rules/command.c +--- hotplug2-201/rules/command.c 2009-12-09 20:44:13.000000000 +0200 ++++ hotplug2-201.patched/rules/command.c 2010-03-31 17:24:09.000000000 +0300 +@@ -374,9 +374,9 @@ + if (firmware == NULL) + return -1; + +- if (snprintf(sysfs_path_loading, PATH_MAX, "/sysfs%s/loading", devpath) >= PATH_MAX) ++ if (snprintf(sysfs_path_loading, PATH_MAX, "/sys%s/loading", devpath) >= PATH_MAX) + return -1; +- if (snprintf(sysfs_path_data, PATH_MAX, "/sysfs%s/data", devpath) >= PATH_MAX) ++ if (snprintf(sysfs_path_data, PATH_MAX, "/sys%s/data", devpath) >= PATH_MAX) + return -1; + if (snprintf(firmware_path, PATH_MAX, "%s/%s", argv[0], firmware) >= PATH_MAX) + return -1; -- cgit v1.2.3