Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 1997 12:27:09 +0800
From:      Peter Wemm <peter@spinner.DIALix.COM>
To:        Warner Losh <imp@village.org>
Cc:        Bruce Evans <bde@zeta.org.au>, phk@critter.dk.tfs.com, ache@nagual.ru, cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, fenner@parc.xerox.com
Subject:   Re: cvs commit: src/lib/libtermcap pathnames.h termcap.c 
Message-ID:  <199703270427.MAA04679@spinner.DIALix.COM>
In-Reply-To: Your message of "Wed, 26 Mar 1997 21:20:02 MST." <E0wA6fS-0006QQ-00@rover.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh wrote:
> In message <199703270350.OAA06953@godzilla.zeta.org.au> Bruce Evans writes:

> : 	warning: this program uses mkstemp(), which is yet another wrong
> : 	         interface (it should allow setting the open mode).
> 
> Can you explain this to me?

Hmm.  Why so Bruce?  It creates the file mode 0600, which is quite safe.  
If you want to allow 3rd party access, you can always:
  fd = mkstemp(...);
  fchmod(fd, ....);

> Warner

Cheers,
-Peter





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703270427.MAA04679>