Anyway, this came up yesterday and it took me a couple of hours to nail down, so I thought a relevantly titled node might be useful in the archive.
Issue: crypt() under mod_perl acts erratically on systems with glibc 2.2.15 (in my case, Mandrake 9.0).
Temporary, ugly solution: Run crypt through backticks, ie:
# change my $crypted = crypt($string,$salt); # to my $crypted = `perl -e "print crypt($string,$salt)"`;
If anyone's found a neater workaround, feel free to share :)
.02
cLive ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (OT?) mod_perl crypt() + glibc 2.2.15 bug
by chromatic (Archbishop) on Nov 19, 2002 at 21:37 UTC | |
by cLive ;-) (Prior) on Nov 19, 2002 at 22:38 UTC |