-
Notifications
You must be signed in to change notification settings - Fork 19.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strip extraneous carriage return from end of entered password #2369
Conversation
❗ Pull request against
Updated: Tue Mar 22 09:18:51 UTC 2016 |
Current coverage is
|
This issue is also fixed in #2284 (and it adds a test to catch it). |
@fjl Your PR changes 75 files and addresses multiple issues at the same time. This is a one line fix that fixes a huge problem for the Wallet users. Can't we merge this independently without needing to wait for your PR? |
Does this work on Windows since it uses |
@bas-vk Good point. I'm on OS X. I should test it out on Windows. On a larger note I'm wondering whether a better approach might be to modify the |
Thank you for your PR. Several notes:
Stripping characters from password is not advised. We shouldn't assume people don't actually put \n at the end of their password. |
Thanks, I'll make sure it's done against As for the second point, I did think about that. But from my limited understanding of the fallback terminal input code, it seems like it stops taking input once In any case, as per my previous comment I think perhaps being able to supply the password directly as part of the |
We cannot provide the password on the command line because the command line arguments are readable by other processes (e.g. through the /proc file system). The long-term fix will be to move account management (and with it presale key importing) into Mist. This PR is fine as a short term fix and should be included in geth 1.3.6. |
@hiddentao you're quite right, my theory is flawed. This PR would be good as a temporary solution if it also addresses the same issue for windows. I'll close this PR in favour of the PR to be made against |
Current users of the Mist wallet on OS X are unable to import their presale wallets. This is due to the fallback terminal password input mechanism failing to strip off the carriage return at the end of the input. I confirmed that this is a bug within geth itself.
This PR fixes this issue.