From 3d9b4fae9fe8d5a2b37d32593616fc3c614e587f Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Tue, 24 May 2011 06:30:55 +0530 Subject: [PATCH] (minor) make htpasswd use md5 passwords (thanks to yoonique dot net at gmail; he also tested that files with some normal and some md5 passwords, such as would happen on an upgrade, work fine) --- src/gitolite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitolite.pm b/src/gitolite.pm index 1a00b4f..1372d59 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -1151,7 +1151,7 @@ EOFhtp my $password = <>; $password =~ s/[\n\r]*$//; die "empty passwords are not allowed\n" unless $password; - my $rc = system("htpasswd", "-b", $HTPASSWD_FILE, $ENV{GL_USER}, $password); + my $rc = system("htpasswd", "-mb", $HTPASSWD_FILE, $ENV{GL_USER}, $password); die "htpasswd command seems to have failed with $rc return code...\n" if $rc; }