Re: stdio-safer and tmpfile

2006-07-28 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > m4/ChangeLog: > 2006-07-23 Eric Blake <[EMAIL PROTECTED]> > > * unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe. > > 2006-07-23 Eric Blake <[EMAIL PROTECTED]> > > * pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to >

Re: [bug-gnulib] stdio-safer and tmpfile

2006-07-27 Thread Bruno Haible
Eric Blake wrote: > +#if ! HAVE_MKSTEMP > +int mkstemp (char *) > +#endif I added a semicolon here. Bruno

Re: stdio-safer and tmpfile

2006-07-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 7/23/2006 7:23 AM: > > m4/ChangeLog: > 2006-07-23 Eric Blake <[EMAIL PROTECTED]> > > * unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe. > > 2006-07-23 Eric Blake <[EMAIL PROTECTED]> > > * pipe-sa

Re: stdio-safer and tmpfile

2006-07-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 7/21/2006 9:51 AM: > > Okay to install? > > ChangeLog: > 2006-07-21 Eric Blake <[EMAIL PROTECTED]> > > * modules/stdio-safer (Files): Add tmpfile-safer.c. > (Depends-on): Add binary-io. > > * stdio-saf

stdio-safer and tmpfile

2006-07-21 Thread Eric Blake
Even after using stdio-safer, m4 still has a bug where stderr can be clobbered; it is the third case in: http://lists.gnu.org/archive/html/bug-m4/2006-07/msg00021.html I traced it to the fact that we don't have tmpfile_safer. I based my implementation on Paul's fopen trick, which uses at most o