Description of problem: In certain circumstances, mkpasswd utility fails and exits with errors: Very Unfortunate, I don't have the copy of the output as it got erase in my scrollback. From what I can recall, it appears passing switches to an external program was invalid... If it happenes again, I'll be sure to update this bug Version-Release number of selected component (if applicable): expect-5.44.1.15-1.fc14.x86_64 How reproducible: run mkpasswd without command line arguments. Steps to Reproduce: 1. mkpasswd 2. 3. Actual results: It prints out a traceback Expected results: Create a random password Additional info: none
I tested mkpasswd utility - running it few days non-stop - without fail. I'm unable to reproduce it. Closing... please feel free to reopen the bug once you get reproducer or at least error message.
As promise, I reopen this bugs ": must be -i, -h, -s, -null, -0, -raw, -break, or -- while executing "send "$password\r"" invoked from within "expect { "assword*:" { # some systems say "Password (again):" send "$password\r" exp_continue } }" invoked from within "if {[info exists user]} { if {!$verbose} { log_user 0 } spawn $prog $user expect { "assword*:" { # some systems say "Password (again):" ..." (file "/usr/bin/mkpasswd" line 191) This even well it fails at. I should mention, when I said randomly, I meant, it's random or rare but here it is =]
Thanks, I'm able to reproduce the problem now. You didn't mentioned before, that you execute the command with user name argument...
Created attachment 485733 [details] proposed patch Fail occurs when the new randomly generated password contains dash, respectively, when it begins with dash. Patch above resolves the issue. New expect package will be available in testing soon, please test it and let me know, how does it work.
expect-5.44.1.15-2.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/expect-5.44.1.15-2.fc14
expect-5.45-3.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/expect-5.45-3.fc15
I would have mention it if you have had asked but I am glad that it is fixed. Thanks.
expect-5.45-3.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
expect-5.44.1.15-2.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.