Repository navigation
Conversation
|
cool! to reflect the true scope of the patch, it'd suggest rewriting the commit message along the lines of Also, would it be possible to pull ahead the removal of response caching, so the actual rewrite commit becomes smaller? |
34d0b28 to
6e7c8e3
Compare
You seem to know well how the commit message should look, could you please contribute your version in full? Thanks.
I am not sure what you're talking about. |
i just gave you the skeleton. as the author, you are (or at least should be) best suited to actually fill it in. note that i'm not making any outlandish demands here. this is accepted best practice by any project that takes "commit hygiene" seriously. see for example git's own policy. it's a worthwhile investment to learn how to do it properly.
the point "Don't save responses, as we can't differentiate between permanent passwords and one-time codes" sounds like a code removal. this is usually a good "prelude" to refactoring/rewriting code, so it makes sense to try to prepend a separate commit that does only that. |
Could you point me to a well-documented commit of yours in this repo? I did the commit messages the way you describe long ago, before Git, when I had to also maintain a detailed ChangeLog. I don't have time for this at the moment. I also don't believe these are outlandish demands, but I believe you're asking too much from me. I have already contributed my time to fix the bugs for the benefit of all MC users. I don't desperately need the project to merge my code - the project and its users need it. I am not sure how much they need the commit messages, though.
Nope. I'm separating the kbd-interactive auth support from password auth support, and keep permanent password saving in the password auth part, but don't duplicate it in the kbd-interactive part. I think it's evident from the patch. |
right. it would make sense to emphasize this in the commit message, something like "unlike the pre-existing password-auth path, the new kbd-interactive path doesn't ... because ...". alternatively, a proper code comment could highlight the difference. |
zyv
left a comment
There was a problem hiding this comment.
I tried to have a look at this while I'm waiting on Andrew's feedback on the error handling. I hope this makes sense...
5a409ed to
c750c68
Compare
Don't mix password auth and keyboard-interactive auth. Show all prompts verbatim to user. Don't save responses, as we can't differentiate between permanent passwords and one-time codes. Signed-off-by: Phil Krylov <phil@krylov.eu> Co-authored-by: Yury V. Zaytsev <yury@shurup.com>
…m for KbdInteractiveAuthentication Signed-off-by: Phil Krylov <phil@krylov.eu>
c750c68 to
3ca20d3
Compare
|
@zyv thanks! I've updated the code with your suggestions. |
This is a replacement for #5160.
Proposed changes
Don't mix password auth and keyboard-interactive auth.
Show all prompts verbatim to user.
Don't save responses, as we can't differentiate between permanent passwords and one-time codes.
Resolves: ftp /sftp does not work #4585.
Checklist
git commit --amend -smake indent && make check)