gpg: cannot open /dev/tty: Permission denied

Randy Harmon
Wed, 15 Sep 1999 15:57:56 -0700

On Thu, Sep 16, 1999 at 12:33:51AM +0200, Matthias Urlichs wrote:

> Hi,
> Randy Harmon:
> >
> > In this case, I'm at the command line, and I can't
> > see that it should go to /dev/tty for any reason. Passphrase,
> > key-confirmation or whatever should go to the controlling terminal (at least
> > that's what I would expect).

> That's how one talks to the controlling terminal -- open /dev/tty and
> read/write from there. You can't use stdin/out/err; they might be
> redirected. Instead of playing games with isatty() and trying to write to
> stdin (or read from stdout), gpg uses /dev/tty always. That makes sense,
Doh. <slaps forehead> Thanks for correcting my ignorance in this matter. Randy