Home GnuPG
Diffusion GnuPG 835698b72bc5

Do not use a broken ttyname.
835698b72bc5Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Do not use a broken ttyname.

* configure.ac (HAVE_BROKEN_TTYNAME): New ac_define set for Android
systems.
* common/util.h (gnupg_ttyname): New macro.  Change all callers of
ttyname to use this macro instead.
(ttyname) [W32]: Rename to _gnupg_ttyname and use also if
HAVE_BROKEN_TTYNAME is defined.
* common/simple-pwquery.c (agent_send_all_options): Keep on using
ttyname unless HAVE_BROKEN_TTYNAME is set.  This is because this file
may be used standalone.

Details

Provenance
wernerAuthored on Nov 20 2012, 7:01 PM
Parents
rGe7bc5012c568: Fix non-portable use of chmod in autogen.sh.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG835698b72bc5: Do not use a broken ttyname. (authored by Werner Koch <wk@gnupg.org>).Nov 20 2012, 7:03 PM