Bug#267792: perl code

Florian Weimer Florian Weimer <fw@deneb.enyo.de>, 267792@bugs.debian.org
Sat, 04 Sep 2004 20:19:42 +0200


* Jonas Meurer:

> #!/usr/bin/perl -w
> if (@ARGV == 2) {
>   $file="/etc/exim4/passwd";
>   open(PWD,">>$file") || die("Couldn't append to file '$file': $!");
>   print PWD $ARGV[0] . ":" . crypt($ARGV[1], q{$1$.}) . "\n";
>   close(PWD);
> }

Ahem, passing passwords on the command line isn't a terribly good
idea.