* lib/getpass.c (getpass): Pass an 'e' flag to fopen.
* modules/getpass (Depends-on): Add fopen-gnu.
+2020-05-27 Bruno Haible <bruno@clisp.org>
+
+ getpass: Make more robust in multithreaded applications.
+ * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
+ * modules/getpass (Depends-on): Add fopen-gnu.
+
2020-05-27 Bruno Haible <bruno@clisp.org>
getloadavg: Make more robust in multithreaded applications.
/* Try to write to and read from the terminal if we can.
If we can't open the terminal, use stderr and stdin. */
- tty = fopen ("/dev/tty", "w+");
+ tty = fopen ("/dev/tty", "w+e");
if (tty == NULL)
{
in = stdin;
Depends-on:
unistd
extensions
+fopen-gnu
fseeko
getline
stdbool