aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-04-03 18:09:04 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-04-03 18:09:04 +0000
commitd234536a34cd2bae4147ec9f9d057767e02a57f5 (patch)
tree9d1175fa167ca7a126c31e51adc27e82ec1cf75d /package
parent38b256105de61924d9a7c1c705f0fc84d7798479 (diff)
downloadupstream-d234536a34cd2bae4147ec9f9d057767e02a57f5.tar.gz
upstream-d234536a34cd2bae4147ec9f9d057767e02a57f5.tar.bz2
upstream-d234536a34cd2bae4147ec9f9d057767e02a57f5.zip
hotplug2: Fix sysfs path (#7031)
SVN-Revision: 20679
Diffstat (limited to 'package')
-rw-r--r--package/hotplug2/patches/120-sysfs_path_fix.patch15
1 files changed, 15 insertions, 0 deletions
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 0000000000..2b032a9d4d
--- /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;