* lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
open().
* modules/mountlist (Depends-on): Add 'open'.
+2020-05-28 Bruno Haible <bruno@clisp.org>
+
+ mountlist: Make more robust in multithreaded applications.
+ * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
+ open().
+ * modules/mountlist (Depends-on): Add 'open'.
+
2020-05-28 Bruno Haible <bruno@clisp.org>
login_tty: Make more robust in multithreaded applications.
# ifndef MNTTAB_LOCK
# define MNTTAB_LOCK "/etc/.mnttab.lock"
# endif
- lockfd = open (MNTTAB_LOCK, O_RDONLY);
+ lockfd = open (MNTTAB_LOCK, O_RDONLY | O_CLOEXEC);
if (0 <= lockfd)
{
struct flock flock;
Depends-on:
fopen-gnu
getline
+open
stdbool
stdint
strstr-simple