From owner-cvs-lib Wed Mar 26 20:28:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA03062 for cvs-lib-outgoing; Wed, 26 Mar 1997 20:28:11 -0800 (PST) Received: from spinner.DIALix.COM (root@spinner.dialix.com [192.203.228.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA03005; Wed, 26 Mar 1997 20:27:57 -0800 (PST) Received: from spinner.DIALix.COM (peter@localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.8.5/8.8.5) with ESMTP id MAA04679; Thu, 27 Mar 1997 12:27:09 +0800 (WST) Message-Id: <199703270427.MAA04679@spinner.DIALix.COM> X-Mailer: exmh version 2.0gamma 1/27/96 To: Warner Losh cc: Bruce Evans , 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 In-reply-to: Your message of "Wed, 26 Mar 1997 21:20:02 MST." Date: Thu, 27 Mar 1997 12:27:09 +0800 From: Peter Wemm Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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