wok annotate thttpd/stuff/htpassword.c.u @ rev 11566

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