* lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
* modules/readutmp (Depends-on): Add fopen-gnu.
+2020-05-27 Bruno Haible <bruno@clisp.org>
+
+ readutmp: Make more robust in multithreaded applications.
+ * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
+ * modules/readutmp (Depends-on): Add fopen-gnu.
+
2020-05-27 Bruno Haible <bruno@clisp.org>
getpass: Make more robust in multithreaded applications.
size_t n_alloc = 0;
STRUCT_UTMP *utmp = NULL;
int saved_errno;
- FILE *f = fopen (file, "r");
+ FILE *f = fopen (file, "re");
if (! f)
return -1;
xalloc
stdbool
stdint
+fopen-gnu
configure.ac:
gl_READUTMP