Why would include files ever be missing in the first place?

What's the root-cause problem this is attempting to fix?

-Philip


On 2/7/11 2:28 PM, [email protected] wrote:
Author: acinonyx
Date: 2011-02-07 23:28:04 +0100 (Mon, 07 Feb 2011)
New Revision: 25414

Added:
    trunk/package/hotplug2/patches/170-non_fatal_include.patch
Log:
[package] hotplug2: Make missing include files non fatal

Added: trunk/package/hotplug2/patches/170-non_fatal_include.patch
===================================================================
--- trunk/package/hotplug2/patches/170-non_fatal_include.patch                  
        (rev 0)
+++ trunk/package/hotplug2/patches/170-non_fatal_include.patch  2011-02-07 
22:28:04 UTC (rev 25414)
@@ -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);
+

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to