wok-undigest annotate thttpd/stuff/htpassword.c.u @ rev 0

Add thttpd
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Fri Mar 19 18:55:59 2010 +0100 (2010-03-19)
parents
children
rev   line source
erjo@0 1 --- thttpd-2.25b-ori/extras/htpasswd.c Wed Dec 19 01:08:08 2001
erjo@0 2 +++ thttpd-2.25b/extras/htpasswd.c Sun Feb 28 23:02:36 2010
erjo@0 3 @@ -49,7 +49,7 @@
erjo@0 4 while((line[y++] = line[x++]));
erjo@0 5 }
erjo@0 6
erjo@0 7 -static int getline(char *s, int n, FILE *f) {
erjo@0 8 +static int xgetline(char *s, int n, FILE *f) {
erjo@0 9 register int i=0;
erjo@0 10
erjo@0 11 while(1) {
erjo@0 12 @@ -189,7 +189,7 @@
erjo@0 13 strcpy(user,argv[2]);
erjo@0 14
erjo@0 15 found = 0;
erjo@0 16 - while(!(getline(line,MAX_STRING_LEN,f))) {
erjo@0 17 + while(!(xgetline(line,MAX_STRING_LEN,f))) {
erjo@0 18 if(found || (line[0] == '#') || (!line[0])) {
erjo@0 19 putline(tfp,line);
erjo@0 20 continue;