Posted on 2007-06-05 12:32:51-07 by stargazer
Authen-Htpasswd on Windows - bug fixed
After installing this module on my Windows server, the following error was observed: Permission denied at C:/Perl/site/lib/Authen/Htpasswd.pm line 253. This error arises because windows will not rename a file to a new name if a file of that new name already exists. So to fix this, I added a line of code to Htpasswd.pm just above line #253.
sub_finish_rewrite { my ($self, $old, $new) = @_; $new->close or die $!; $old->close or die $!; unlink $self->file; rename $self->file . $SUFFIX, $self->file or die $!; }
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.