[OpenWrt-Devel] [PATCH] [package] uhttpd: fix handling of / as lua or ubus prefix

Charles Lehner celehner1 at gmail.com
Mon Jul 28 11:22:57 EDT 2014


On Mon, 28 Jul 2014 12:30:23 +0200
Felix Fietkau <nbd at openwrt.org> wrote:

> On 2014-07-28 07:52, Charles Lehner wrote:
> > From: Charles Lehner <celehner1 at gmail.com>
> > 
> > Fix up lua prefix and ubus prefix, as done with cgi prefix.
> >     
> > Signed-off-by: Charles Lehner <celehner1 at gmail.com>
> Your patch is whitespace mangled and does not apply. Please resend.
> 
> Thanks,
> 
> - Felix
> 

Woops, here is one with fixed whitespace.

Charles

---
diff --git a/main.c b/main.c
index 44c3226..39fb6b6 100644
--- a/main.c
+++ b/main.c
@@ -378,6 +378,7 @@ int main(int argc, char **argv)
 
 #ifdef HAVE_LUA
 		case 'l':
+			fixup_prefix(optarg);
 			conf.lua_prefix = optarg;
 			break;
 
@@ -397,6 +398,7 @@ int main(int argc, char **argv)
 			break;
 
 		case 'u':
+			fixup_prefix(optarg);
 			conf.ubus_prefix = optarg;
 			break;
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list