10 X's for mkstemp(), and don't redefine _PATH_TMP

This commit is contained in:
Kris Kennaway 2000-01-10 09:25:32 +00:00
parent ab6b0e3e64
commit aaae3130c9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55742
4 changed files with 6 additions and 8 deletions

View File

@ -113,7 +113,7 @@ struct disklabel * getvirginlabel __P((void));
char *dkname;
char *specname;
char tmpfil[] = _PATH_TMP;
char tmpfil[] = PATH_TMPFILE;
char namebuf[BBSIZE], *np = namebuf;
struct disklabel lab;

View File

@ -30,11 +30,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)pathnames.h 8.1 (Berkeley) 6/5/93
* $FreeBSD$
*/
#include <paths.h>
#define _PATH_BOOTDIR "/boot"
#undef _PATH_TMP
#define _PATH_TMP "/tmp/EdDk.aXXXXXX"
#define PATH_TMPFILE "/tmp/dlblXXXXXXXXXX"

View File

@ -113,7 +113,7 @@ struct disklabel * getvirginlabel __P((void));
char *dkname;
char *specname;
char tmpfil[] = _PATH_TMP;
char tmpfil[] = PATH_TMPFILE;
char namebuf[BBSIZE], *np = namebuf;
struct disklabel lab;

View File

@ -30,11 +30,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)pathnames.h 8.1 (Berkeley) 6/5/93
* $FreeBSD$
*/
#include <paths.h>
#define _PATH_BOOTDIR "/boot"
#undef _PATH_TMP
#define _PATH_TMP "/tmp/EdDk.aXXXXXX"
#define PATH_TMPFILE "/tmp/dlblXXXXXXXXXX"