aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thttpd/getline.patch
diff options
context:
space:
mode:
authorz3bra <willy@mailoo.org>2014-10-22 17:35:04 +0200
committerz3bra <willy@mailoo.org>2014-10-22 17:35:04 +0200
commit5b11fa3aaf8a3d8fa25fe30ea370f8a8f8dfbf3d (patch)
treef9b48f2186125990c8b20657bb63445ddcc436ba /testing/thttpd/getline.patch
parentd5babbb8ef86ae55b002de1d4383a5a684f22e29 (diff)
downloadaports-5b11fa3aaf8a3d8fa25fe30ea370f8a8f8dfbf3d.tar.bz2
aports-5b11fa3aaf8a3d8fa25fe30ea370f8a8f8dfbf3d.tar.xz
testing/thttpd: new aport
Diffstat (limited to 'testing/thttpd/getline.patch')
-rw-r--r--testing/thttpd/getline.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/thttpd/getline.patch b/testing/thttpd/getline.patch
new file mode 100644
index 0000000000..1ec3946b10
--- /dev/null
+++ b/testing/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;