diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-07-18 07:23:40 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-07-18 07:23:40 +0000 |
commit | 86b2e4df0ea6b3e409a333faadd6faa67fa7675d (patch) | |
tree | e995b83b1408958548c11b7aa61845a90dd12e50 /package/hotplug2/patches | |
parent | 0cab184232df0beece8460f2a84e27854309d107 (diff) | |
download | master-187ad058-86b2e4df0ea6b3e409a333faadd6faa67fa7675d.tar.gz master-187ad058-86b2e4df0ea6b3e409a333faadd6faa67fa7675d.tar.bz2 master-187ad058-86b2e4df0ea6b3e409a333faadd6faa67fa7675d.zip |
fix two small bugs in the hotplug2 rule parser (#2085)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8023 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hotplug2/patches')
-rw-r--r-- | package/hotplug2/patches/110-parser_fixes.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/hotplug2/patches/110-parser_fixes.patch b/package/hotplug2/patches/110-parser_fixes.patch new file mode 100644 index 0000000000..0605ddd315 --- /dev/null +++ b/package/hotplug2/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 { + /* |