Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/window use mkdtemp not mktemp/mkdir.
details: https://anonhg.NetBSD.org/src/rev/c25c465f9435
branches: trunk
changeset: 472080:c25c465f9435
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Apr 20 13:52:36 1999 +0000
description:
use mkdtemp not mktemp/mkdir.
diffstat:
usr.bin/window/wwterminfo.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 140e2a80cfb1 -r c25c465f9435 usr.bin/window/wwterminfo.c
--- a/usr.bin/window/wwterminfo.c Tue Apr 20 10:59:13 1999 +0000
+++ b/usr.bin/window/wwterminfo.c Tue Apr 20 13:52:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wwterminfo.c,v 1.3 1997/12/31 06:56:04 thorpej Exp $ */
+/* $NetBSD: wwterminfo.c,v 1.4 1999/04/20 13:52:36 mrg Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)wwterminfo.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: wwterminfo.c,v 1.3 1997/12/31 06:56:04 thorpej Exp $");
+__RCSID("$NetBSD: wwterminfo.c,v 1.4 1999/04/20 13:52:36 mrg Exp $");
#endif
#endif /* not lint */
@@ -77,9 +77,8 @@
/* make the directory */
(void) sprintf(wwterminfopath, "%swwinXXXXXX", _PATH_TMP);
- mktemp(wwterminfopath);
- if (mkdir(wwterminfopath, 0755) < 0 ||
- chmod(wwterminfopath, 00755) < 0) {
+ if (mkdtemp(wwterminfopath) == NULL) ||
+ chmod(wwterminfopath, 0755) < 0) {
wwerrno = WWE_SYS;
return -1;
}
Home |
Main Index |
Thread Index |
Old Index