gpgme+gpgsm bug: fails when stdout redirected

Christian Biere cbiere at TechFak.Uni-Bielefeld.DE
Tue Jan 27 22:33:17 CET 2004


Albrecht Dreß schrieb:
> [albrecht at antares gpgme-0.4.3]$ ./TEST
> tty name is /dev/pts/0
> errno is 0 == Success
> [albrecht at antares gpgme-0.4.3]$ ./TEST > /dev/null
> tty name is (null)
> errno is 25 == Inappropriate ioctl for device

The code should either use isatty() or not handle ENOTTY as an error.

Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 303 bytes
Desc: not available
Url : /pipermail/attachments/20040127/9759c334/attachment.bin


More information about the Gnupg-devel mailing list