You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James M <jl...@gmail.com> on 2007/04/02 17:50:17 UTC

[users@httpd] Did I find a htpasswd bug?

While trying to delete a user via a php program I notice that the return
code is zero when a user is not found. Shouldn't it be non zero. Or maybe
I'm doing something wrong.
Here's the code and also what I see in the error_log...

system("/usr/local/apache2/bin/htpasswd -D /usr/local/apache2/conf/vins
ight.passwd $username",$retval);

As I said the return value is zero when I see the following in the
error_log...

User jimbo55 not found

Am I going about this wrong or is this a bug?

Thanks for the help.
BTW apache 2.3.3

James