[pass] pass edit: infinite loop
Brian Mattern
rephorm at rephorm.com
Sun Dec 30 19:36:34 CET 2012
On Sun, 30 Dec 2012, Jason A. Donenfeld wrote:
> On Sun, Dec 30, 2012 at 5:22 AM, Brian Mattern <rephorm at rephorm.com> wrote:
> >
> > I can't think of a case where encryption would succeed the second time
> > after failing the first. Perhaps we should replace this loop with a
> > warning and an option to print the password contents to screen before
> > exiting?
>
> I thought about this back when implementing the feature, but couldn't
> think of a clean enough solution. I went for the infinite loop with
> the kind of shifty reasoning of "oh, well, they'll just have to fix
> things while it's looping and eventually it will work," but this
> obviously has its drawbacks.
I was wondering if that was the intention.
>
> Something better than printing to the screen would just to open the
> editor back up again, after a delay where the error message is shown.
Yeah. That's a better solution.
More information about the Password-Store
mailing list