wok-6.x view thttpd/stuff/htpassword.c.u @ rev 13343

added description to nathive. Getting back into the swing of things.
author Samuel Trassare <samuel_trassare@yahoo.com>
date Wed Sep 05 22:34:09 2012 +0000 (2012-09-05)
parents
children
line source
1 --- thttpd-2.25b-ori/extras/htpasswd.c Wed Dec 19 01:08:08 2001
2 +++ thttpd-2.25b/extras/htpasswd.c Sun Feb 28 23:02:36 2010
3 @@ -49,7 +49,7 @@
4 while((line[y++] = line[x++]));
5 }
7 -static int getline(char *s, int n, FILE *f) {
8 +static int xgetline(char *s, int n, FILE *f) {
9 register int i=0;
11 while(1) {
12 @@ -189,7 +189,7 @@
13 strcpy(user,argv[2]);
15 found = 0;
16 - while(!(getline(line,MAX_STRING_LEN,f))) {
17 + while(!(xgetline(line,MAX_STRING_LEN,f))) {
18 if(found || (line[0] == '#') || (!line[0])) {
19 putline(tfp,line);
20 continue;