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

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 16:59:06 2022 +0000 (2022-02-08)
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;