wok-6.x annotate thttpd/stuff/htpassword.c.u @ rev 12531
kmod: install in /sbin /bin /lib, do symlinks and use xz/lzma compression
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 25 11:15:08 2012 +0200 (2012-04-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; |