contrib/uhttpd: add patch to fix linking on recent distros, refresh environment patch
This commit is contained in:
parent
f2a428cdb3
commit
3880b028fc
3 changed files with 14 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
--- a/uhttpd-cgi.c
|
||||
+++ b/uhttpd-cgi.c
|
||||
@@ -204,7 +204,7 @@ void uh_cgi_request(struct client *cl, s
|
||||
(pi->stat.st_mode & S_IXOTH)
|
||||
@@ -216,7 +216,7 @@ void uh_cgi_request(
|
||||
(pi->stat.st_mode & S_IXOTH)) || (ip != NULL)
|
||||
) {
|
||||
/* build environment */
|
||||
- clearenv();
|
||||
|
|
11
contrib/uhttpd/patches/002-link-order.patch
Normal file
11
contrib/uhttpd/patches/002-link-order.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -70,7 +70,7 @@ endif
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
compile: $(OBJ) $(TLSLIB) $(LUALIB)
|
||||
- $(CC) -o uhttpd $(LDFLAGS) $(LIB) $(OBJ)
|
||||
+ $(CC) -o uhttpd $(LDFLAGS) $(OBJ) $(LIB)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so uhttpd
|
|
@ -1 +1,2 @@
|
|||
001-pass-env.patch
|
||||
002-link-order.patch
|
||||
|
|
Loading…
Reference in a new issue