Hi,

 

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);

to:

    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

mailto:[EMAIL PROTECTED]

http://www.mappingsoft.com

 

 

Reply via email to