wok diff thttpd/stuff/htpassword.c.u @ rev 15375

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 18 19:43:55 2013 +0000 (2013-10-18)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/thttpd/stuff/htpassword.c.u	Fri Oct 18 19:43:55 2013 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +--- thttpd-2.25b-ori/extras/htpasswd.c	Wed Dec 19 01:08:08 2001
     1.5 ++++ thttpd-2.25b/extras/htpasswd.c	Sun Feb 28 23:02:36 2010
     1.6 +@@ -49,7 +49,7 @@
     1.7 +     while((line[y++] = line[x++]));
     1.8 + }
     1.9 + 
    1.10 +-static int getline(char *s, int n, FILE *f) {
    1.11 ++static int xgetline(char *s, int n, FILE *f) {
    1.12 +     register int i=0;
    1.13 + 
    1.14 +     while(1) {
    1.15 +@@ -189,7 +189,7 @@
    1.16 +     strcpy(user,argv[2]);
    1.17 + 
    1.18 +     found = 0;
    1.19 +-    while(!(getline(line,MAX_STRING_LEN,f))) {
    1.20 ++    while(!(xgetline(line,MAX_STRING_LEN,f))) {
    1.21 +         if(found || (line[0] == '#') || (!line[0])) {
    1.22 +             putline(tfp,line);
    1.23 +             continue;