wok-undigest annotate thttpd/stuff/htpassword.c.u @ rev 427
nvidia-*: update for cook
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 04 17:13:50 2011 +0200 (2011-09-04) |
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; |