httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <>
Subject htpasswd utility error
Date Thu, 07 Jun 2001 19:42:29 GMT
Did someone ever tried to test the htpasswd.exe on Windows? (compiled
with VC6 sp4)
It doesn't work since version 2.0.b16.
It can create the file and add the password, but if you try to add the
password to the existing file then it reports:
htpasswd: cannot modify file htpasswd; use '-c' to create it.
Well, the file exists so I found out that the function apr_stat returns
the false value for existing file.
Changing the line 358 in htaccess.c from:
    check = apr_stat(&sbuf, fname, APR_FINFO_NORM, NULL);
    check = apr_stat(&sbuf, fname, APR_FINFO_MIN, NULL);
then the htpasswd.exe works normal.
Mladen Turk
MCSE/GIS Specialist
Sisiceva 10,
10000 Zagreb, Croatia <> 

View raw message