fix two small bugs in the hotplug2 rule parser (#2085)
SVN-Revision: 8023
This commit is contained in:
parent
b375d32a48
commit
fd5595ed5c
1 changed files with 22 additions and 0 deletions
22
package/hotplug2/patches/110-parser_fixes.patch
Normal file
22
package/hotplug2/patches/110-parser_fixes.patch
Normal file
|
@ -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 {
|
||||
/*
|
Loading…
Reference in a new issue