Skip to content
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

When waiting the passcode skip additional informations if any. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions pinentry-kwallet
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,12 @@ function getit {
io_s_out GETPIN
io_s_in resp
pw=
#XXX normally, read until OK|ERR
if [[ $resp = @(D )* ]]; then
pw=${resp#D }
io_s_in resp
fi
while [[ $resp != @(OK|ERR)@(| *) ]]; do
if [[ $resp = @(D )* ]]; then
pw=${resp#D }
fi
io_s_in resp
done
[[ $resp = OK@(| *) ]] && tw=1
fi
(( tw && !blst )) && if kwalletcli_getpin -q -b \
Expand Down