initial commit: 1.5.0
[systemrescuecd.git] / portage-overlay / www-servers / thttpd / files / thttpd-2.25b-glibc-2.10.patch
1 diff -ur thttpd-2.25b.orig/extras/htpasswd.c thttpd-2.25b/extras/htpasswd.c
2 --- thttpd-2.25b.orig/extras/htpasswd.c 2001-12-19 02:08:08.000000000 +0200
3 +++ thttpd-2.25b/extras/htpasswd.c      2009-08-09 16:40:06.000000000 +0300
4 @@ -49,7 +49,7 @@
5      while((line[y++] = line[x++]));
6  }
7  
8 -static int getline(char *s, int n, FILE *f) {
9 +static int get_line(char *s, int n, FILE *f) {
10      register int i=0;
11  
12      while(1) {
13 @@ -189,7 +189,7 @@
14      strcpy(user,argv[2]);
15  
16      found = 0;
17 -    while(!(getline(line,MAX_STRING_LEN,f))) {
18 +    while(!(get_line(line,MAX_STRING_LEN,f))) {
19          if(found || (line[0] == '#') || (!line[0])) {
20              putline(tfp,line);
21              continue;