fix an accidental return code change

This commit is contained in:
Felix Fietkau 2008-06-28 23:23:30 +00:00
parent 40d21303f3
commit 116f8bffde

View file

@ -1,7 +1,7 @@
Index: boa-0.94.13/src/list.h Index: boa-0.94.13/src/list.h
=================================================================== ===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ boa-0.94.13/src/list.h 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/list.h 2008-06-29 01:12:36.000000000 +0200
@@ -0,0 +1,601 @@ @@ -0,0 +1,601 @@
+#ifndef _LINUX_LIST_H +#ifndef _LINUX_LIST_H
+#define _LINUX_LIST_H +#define _LINUX_LIST_H
@ -607,7 +607,7 @@ Index: boa-0.94.13/src/list.h
Index: boa-0.94.13/src/plugin.c Index: boa-0.94.13/src/plugin.c
=================================================================== ===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ boa-0.94.13/src/plugin.c 2008-06-29 00:39:43.000000000 +0200 +++ boa-0.94.13/src/plugin.c 2008-06-29 01:22:01.000000000 +0200
@@ -0,0 +1,190 @@ @@ -0,0 +1,190 @@
+/* +/*
+ * Simple plugin API for boa + * Simple plugin API for boa
@ -732,7 +732,7 @@ Index: boa-0.94.13/src/plugin.c
+ +
+ p = plugin_lookup(req); + p = plugin_lookup(req);
+ if (!p) + if (!p)
+ return 1; + return 0;
+ +
+ return plugin_run(req, p); + return plugin_run(req, p);
+} +}
@ -801,8 +801,8 @@ Index: boa-0.94.13/src/plugin.c
+ +
Index: boa-0.94.13/src/request.c Index: boa-0.94.13/src/request.c
=================================================================== ===================================================================
--- boa-0.94.13.orig/src/request.c 2002-07-24 05:03:59.000000000 +0200 --- boa-0.94.13.orig/src/request.c 2008-06-29 01:11:52.000000000 +0200
+++ boa-0.94.13/src/request.c 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/request.c 2008-06-29 01:12:36.000000000 +0200
@@ -50,6 +50,7 @@ @@ -50,6 +50,7 @@
dequeue(&request_free, request_free); /* dequeue the head */ dequeue(&request_free, request_free); /* dequeue the head */
} else { } else {
@ -854,8 +854,8 @@ Index: boa-0.94.13/src/request.c
return init_cgi(req); return init_cgi(req);
Index: boa-0.94.13/src/Makefile.in Index: boa-0.94.13/src/Makefile.in
=================================================================== ===================================================================
--- boa-0.94.13.orig/src/Makefile.in 2002-03-24 23:20:19.000000000 +0100 --- boa-0.94.13.orig/src/Makefile.in 2008-06-29 01:11:52.000000000 +0200
+++ boa-0.94.13/src/Makefile.in 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/Makefile.in 2008-06-29 01:12:36.000000000 +0200
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
srcdir = @srcdir@ srcdir = @srcdir@
VPATH = @srcdir@:@srcdir@/../extras VPATH = @srcdir@:@srcdir@/../extras
@ -877,8 +877,8 @@ Index: boa-0.94.13/src/Makefile.in
Index: boa-0.94.13/src/boa.h Index: boa-0.94.13/src/boa.h
=================================================================== ===================================================================
--- boa-0.94.13.orig/src/boa.h 2002-07-26 05:03:44.000000000 +0200 --- boa-0.94.13.orig/src/boa.h 2008-06-29 01:11:52.000000000 +0200
+++ boa-0.94.13/src/boa.h 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/boa.h 2008-06-29 01:12:36.000000000 +0200
@@ -37,6 +37,7 @@ @@ -37,6 +37,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> /* OPEN_MAX */ #include <limits.h> /* OPEN_MAX */
@ -907,8 +907,8 @@ Index: boa-0.94.13/src/boa.h
#endif #endif
Index: boa-0.94.13/src/config.c Index: boa-0.94.13/src/config.c
=================================================================== ===================================================================
--- boa-0.94.13.orig/src/config.c 2002-07-26 05:04:29.000000000 +0200 --- boa-0.94.13.orig/src/config.c 2008-06-29 01:11:52.000000000 +0200
+++ boa-0.94.13/src/config.c 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/config.c 2008-06-29 01:12:36.000000000 +0200
@@ -61,6 +61,7 @@ @@ -61,6 +61,7 @@
char *error_log_name; char *error_log_name;
char *access_log_name; char *access_log_name;
@ -950,8 +950,8 @@ Index: boa-0.94.13/src/config.c
if (mime_types) { if (mime_types) {
Index: boa-0.94.13/src/alias.c Index: boa-0.94.13/src/alias.c
=================================================================== ===================================================================
--- boa-0.94.13.orig/src/alias.c 2002-07-28 04:46:52.000000000 +0200 --- boa-0.94.13.orig/src/alias.c 2008-06-29 01:11:52.000000000 +0200
+++ boa-0.94.13/src/alias.c 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/alias.c 2008-06-29 01:12:36.000000000 +0200
@@ -213,6 +213,7 @@ @@ -213,6 +213,7 @@
uri_len = strlen(req->request_uri); uri_len = strlen(req->request_uri);
@ -980,8 +980,8 @@ Index: boa-0.94.13/src/alias.c
return 0; return 0;
Index: boa-0.94.13/src/globals.h Index: boa-0.94.13/src/globals.h
=================================================================== ===================================================================
--- boa-0.94.13.orig/src/globals.h 2002-07-24 05:03:59.000000000 +0200 --- boa-0.94.13.orig/src/globals.h 2008-06-29 01:11:52.000000000 +0200
+++ boa-0.94.13/src/globals.h 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/globals.h 2008-06-29 01:12:36.000000000 +0200
@@ -47,6 +47,7 @@ @@ -47,6 +47,7 @@
struct request { /* pending requests */ struct request { /* pending requests */
int fd; /* client's socket fd */ int fd; /* client's socket fd */
@ -1000,8 +1000,8 @@ Index: boa-0.94.13/src/globals.h
char *path_translated; /* env variable */ char *path_translated; /* env variable */
Index: boa-0.94.13/src/read.c Index: boa-0.94.13/src/read.c
=================================================================== ===================================================================
--- boa-0.94.13.orig/src/read.c 2002-03-18 02:53:48.000000000 +0100 --- boa-0.94.13.orig/src/read.c 2008-06-29 01:11:52.000000000 +0200
+++ boa-0.94.13/src/read.c 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/read.c 2008-06-29 01:12:36.000000000 +0200
@@ -338,8 +338,11 @@ @@ -338,8 +338,11 @@
if (bytes_to_write == 0) { /* nothing left in buffer to write */ if (bytes_to_write == 0) { /* nothing left in buffer to write */
@ -1019,7 +1019,7 @@ Index: boa-0.94.13/src/read.c
Index: boa-0.94.13/src/boa-plugin.h Index: boa-0.94.13/src/boa-plugin.h
=================================================================== ===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ boa-0.94.13/src/boa-plugin.h 2008-06-15 23:21:11.000000000 +0200 +++ boa-0.94.13/src/boa-plugin.h 2008-06-29 01:12:36.000000000 +0200
@@ -0,0 +1,67 @@ @@ -0,0 +1,67 @@
+#ifndef _HTTPD_PLUGIN_H__ +#ifndef _HTTPD_PLUGIN_H__
+#define _HTTPD_PLUGIN_H__ +#define _HTTPD_PLUGIN_H__