Hello,
mkpasswd utility fails sometimes. I discovered, that it happens when new randomly generated password begins with dash. "send" takes it as additional, non defined, flag.
Patch follows.
For more details see:
https://bugzilla.redhat.com/show_bug.cgi?id=674184
Best regards,
Vitezslav Crhonek
proposed patch