summaryrefslogtreecommitdiff
path: root/package/mini_httpd
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-02 22:09:53 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-02 22:09:53 +0200
commit7c520cd3ad42f5d94a9888bb9b3db7c79b6fd94f (patch)
treec2cb6c76cdcc70b6ee1ca13f6ca209cc88d84305 /package/mini_httpd
parentec275cae0293507fd03a7eeb972780fdbd5d40aa (diff)
fix regressions for allconfig alix1c glibc target
Diffstat (limited to 'package/mini_httpd')
-rw-r--r--package/mini_httpd/patches/patch-htpasswd_c21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/mini_httpd/patches/patch-htpasswd_c b/package/mini_httpd/patches/patch-htpasswd_c
new file mode 100644
index 000000000..bfea3fc7c
--- /dev/null
+++ b/package/mini_httpd/patches/patch-htpasswd_c
@@ -0,0 +1,21 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- mini_httpd-1.19.orig/htpasswd.c 2001-12-19 01:08:10.000000000 +0100
++++ mini_httpd-1.19/htpasswd.c 2009-06-01 22:50:44.000000000 +0200
+@@ -49,7 +49,7 @@ static void getword(char *word, char *li
+ while((line[y++] = line[x++]));
+ }
+
+-static int getline(char *s, int n, FILE *f) {
++static int getline2(char *s, int n, FILE *f) {
+ register int i=0;
+
+ while(1) {
+@@ -189,7 +189,7 @@ int main(int argc, char *argv[]) {
+ strcpy(user,argv[2]);
+
+ found = 0;
+- while(!(getline(line,MAX_STRING_LEN,f))) {
++ while(!(getline2(line,MAX_STRING_LEN,f))) {
+ if(found || (line[0] == '#') || (!line[0])) {
+ putline(tfp,line);
+ continue;