aboutsummaryrefslogtreecommitdiffstats
path: root/package/hotplug2-old/patches/110-parser_fixes.patch
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2009-05-28 13:20:54 +0000
committerHamish Guthrie <hcg@openwrt.org>2009-05-28 13:20:54 +0000
commit6bb5dc043ef785d737d807b39de3c39fe01c9b7f (patch)
tree9f2daf93fe9158aef0329b31283ce5ab4874e61f /package/hotplug2-old/patches/110-parser_fixes.patch
parentbdb35a72782b470bcd4556b46125297754ea1c47 (diff)
downloadupstream-6bb5dc043ef785d737d807b39de3c39fe01c9b7f.tar.gz
upstream-6bb5dc043ef785d737d807b39de3c39fe01c9b7f.tar.bz2
upstream-6bb5dc043ef785d737d807b39de3c39fe01c9b7f.zip
[hotplug2] Move hotplug2 v0.9 to hotplug2-old
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16135 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hotplug2-old/patches/110-parser_fixes.patch')
-rw-r--r--package/hotplug2-old/patches/110-parser_fixes.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/hotplug2-old/patches/110-parser_fixes.patch b/package/hotplug2-old/patches/110-parser_fixes.patch
new file mode 100644
index 0000000000..0605ddd315
--- /dev/null
+++ b/package/hotplug2-old/patches/110-parser_fixes.patch
@@ -0,0 +1,22 @@
+Index: hotplug2-0.9/rules.c
+===================================================================
+--- hotplug2-0.9.orig/rules.c 2007-07-18 09:15:38.968308540 +0200
++++ hotplug2-0.9/rules.c 2007-07-18 09:18:52.135316499 +0200
+@@ -756,6 +756,7 @@
+ ERROR("rules parse","Unable to parse rules file.");
+ return -1;
+ }
++ *return_rules = rules;
+
+ unmap_file(&filemap);
+
+@@ -997,7 +998,8 @@
+
+ if (!terminate) {
+ /* A little bit hacky cleanup */
+- return_rules->rules_c--;
++ if (!nested)
++ return_rules->rules_c--;
+ return return_rules;
+ } else {
+ /*