Explicitly read input from STDIN.

Kpasswdd supplies the principal name as an argument to the external
script which makes <> try to read from a file with that name.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Patrik Lundin
2010-07-23 09:51:43 +02:00
committed by Love Hornquist Astrand
parent 083b8b63ee
commit 606c549626

View File

@@ -87,7 +87,7 @@ sub badpassword
exit 0 exit 0
} }
while (<>) { while (<STDIN>) {
last if /^end$/; last if /^end$/;
if (!/^([^:]+): (.+)$/) { if (!/^([^:]+): (.+)$/) {
die "key value pair not correct: $_"; die "key value pair not correct: $_";