1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/mail/mailman/files/patch-aa
Johann Visagie 907476ac43 - Interim update to version 2.0.8 (which contains important security fixes),
maintaining most of the port's existing structure.  A more comprehensive
  restructuring of this port is in the works.
- Assume maintainership, pending any objections from -ports.
2001-12-06 07:45:02 +00:00

17 lines
640 B
Plaintext

--- Mailman/Utils.py.orig Wed Jul 25 20:06:46 2001
+++ Mailman/Utils.py Fri Sep 21 16:46:16 2001
@@ -405,7 +405,12 @@
f = open(mm_cfg.SITE_PW_FILE)
pw2 = f.read()
f.close()
- salt = pw2[:2]
+ # First we check for the Modular Crypt Format
+ mcf = re.match(r'\$\d\$(\w+)\$', pw2)
+ if mcf: # Is it MCF?
+ salt=mcf.group(1)
+ else: # No, it's traditional DES.
+ salt=pw2[:2]
# crypt() has a bug in that if the salt is the empty string, it will
# always return the empty string, regardless of the key. :(
if len(salt) < 2: