[package] hotplug2: Make missing include files non fatal
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 7 Feb 2011 22:28:04 +0000 (22:28 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 7 Feb 2011 22:28:04 +0000 (22:28 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25414 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/hotplug2/patches/170-non_fatal_include.patch [new file with mode: 0644]

diff --git a/package/hotplug2/patches/170-non_fatal_include.patch b/package/hotplug2/patches/170-non_fatal_include.patch
new file mode 100644 (file)
index 0000000..672746c
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/parser/parser.c
++++ b/parser/parser.c
+@@ -578,7 +578,7 @@ int parser_file(const char *filename, st
+       ctx.lexer.fp = fopen(filename, "r");
+       if (ctx.lexer.fp == NULL) {
+               parser_clear(&ctx);
+-              return -1;
++              return 0;
+       }
+       ctx.lexer.filename = strdup(filename);