aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2005-01-15 17:51:54 +0800
committerdinoex <dinoex@FreeBSD.org>2005-01-15 17:51:54 +0800
commitb153ab7e2f8d45add4a2f9a5987956b53510d849 (patch)
treed2c9c63f42f6585b18e81c48626906f448b83f31 /www
parentd2a7f9b7f2505475be2e4f8cafa1a2a8f44429d4 (diff)
downloadfreebsd-ports-gnome-b153ab7e2f8d45add4a2f9a5987956b53510d849.tar.gz
freebsd-ports-gnome-b153ab7e2f8d45add4a2f9a5987956b53510d849.tar.zst
freebsd-ports-gnome-b153ab7e2f8d45add4a2f9a5987956b53510d849.zip
dbmmanage doesn't recognize the $1$ md5 prefix used by FreeBSD when
checking a password using "dbmmanage passwdfile check". This patch fixes this. (no need to bump PORTVERSION) Submitted by: Palle Girgensohn
Diffstat (limited to 'www')
-rw-r--r--www/apache13-modssl/files/patch-dbmmanage11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/apache13-modssl/files/patch-dbmmanage b/www/apache13-modssl/files/patch-dbmmanage
new file mode 100644
index 000000000000..dcce57c1ced4
--- /dev/null
+++ b/www/apache13-modssl/files/patch-dbmmanage
@@ -0,0 +1,11 @@
+--- src/support/dbmmanage~ Tue Oct 10 06:23:58 2000
++++ src/support/dbmmanage Sun Dec 3 00:45:08 2000
+@@ -338,7 +338,7 @@
+ } elsif (substr($chkpass, 0, 5) eq '{SHA}') {
+ need_sha1_crypt;
+ $crypt_method = "sha1";
+- } elsif (length($chkpass) == 13 && $chkpass ne $testpass) {
++ } elsif ((length($chkpass) == 13 && $chkpass ne $testpass) || ($chkpass =~ m/^\$[0-9]\$/)) {
+ $crypt_method = "crypt";
+ } else {
+ $crypt_method = "plain";