bug#24659: 'mkdir' procedure is neither thread-safe nor safe (2.0.12)

2016-10-11 Thread Ludovic Courtès
Hi, skribis: > On Mon, Oct 10, 2016 at 06:39:47PM +0200, Ludovic Courtès wrote: >> Hello! > > [...] > >> Furthermore, AFAICS, the above logic is redundant with what the kernel >> does anyway. That is, in a single-threaded program, >> >> mask = umask (0); >> umask (mask);

bug#24659: 'mkdir' procedure is neither thread-safe nor safe (2.0.12)

2016-10-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Oct 10, 2016 at 06:39:47PM +0200, Ludovic Courtès wrote: > Hello! [...] > Furthermore, AFAICS, the above logic is redundant with what the kernel > does anyway. That is, in a single-threaded program, > > mask = umask (0); > umask

bug#24659: 'mkdir' procedure is neither thread-safe nor safe (2.0.12)

2016-10-10 Thread Ludovic Courtès
Hello! When the optional ‘mode’ argument to the ‘mkdir’ procedure is omitted, umask(2) is used to find out what the current mask is and to compute the mode argument to mkdir(2): --8<---cut here---start->8--- if (SCM_UNBNDP (mode)) { mask = umask