diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-22 08:41:09 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-22 08:41:09 +0000 |
commit | f90c15a50a5cefedf36bd7c043d5069b3652c092 (patch) | |
tree | d497bdbbaffcb5c6187e79913f7a95808676ada8 /community/thttpd/getline.patch | |
parent | 53a4f790089c6699afc42a41e31ea685f1699b18 (diff) | |
download | aports-f90c15a50a5cefedf36bd7c043d5069b3652c092.tar.bz2 aports-f90c15a50a5cefedf36bd7c043d5069b3652c092.tar.xz |
community/thttpd: moved from testing
Diffstat (limited to 'community/thttpd/getline.patch')
-rw-r--r-- | community/thttpd/getline.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/community/thttpd/getline.patch b/community/thttpd/getline.patch new file mode 100644 index 0000000000..1ec3946b10 --- /dev/null +++ b/community/thttpd/getline.patch @@ -0,0 +1,21 @@ +diff -Nur thttpd-2.25b.orig/extras/htpasswd.c thttpd-2.25b/extras/htpasswd.c +--- thttpd-2.25b.orig/extras/htpasswd.c 2001-12-19 02:08:08.000000000 +0200 ++++ thttpd-2.25b/extras/htpasswd.c 2010-04-11 14:43:31.037809054 +0300 +@@ -49,7 +49,7 @@ + while((line[y++] = line[x++])); + } + +-static int getline(char *s, int n, FILE *f) { ++static int get_line(char *s, int n, FILE *f) { + register int i=0; + + while(1) { +@@ -189,7 +189,7 @@ + strcpy(user,argv[2]); + + found = 0; +- while(!(getline(line,MAX_STRING_LEN,f))) { ++ while(!(get_line(line,MAX_STRING_LEN,f))) { + if(found || (line[0] == '#') || (!line[0])) { + putline(tfp,line); + continue; |