summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-07-29 03:25:08 +0000
committerimp <imp@FreeBSD.org>1998-07-29 03:25:08 +0000
commit3bf295a8880ed4cae3bfb2af54b467c9a2579c8b (patch)
tree9ba9e3b8214d152d495ea6293a3b02454387ff0e
parent179d7e5a5f98deb716a58d5a6746d7dd56d8e2c9 (diff)
downloadFreeBSD-src-3bf295a8880ed4cae3bfb2af54b467c9a2579c8b.zip
FreeBSD-src-3bf295a8880ed4cae3bfb2af54b467c9a2579c8b.tar.gz
when changing mktemp -> mkstemp, make sure to include the new s
-rw-r--r--usr.sbin/amd/config/mtab_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/config/mtab_file.c b/usr.sbin/amd/config/mtab_file.c
index c652b12..75f92b1 100644
--- a/usr.sbin/amd/config/mtab_file.c
+++ b/usr.sbin/amd/config/mtab_file.c
@@ -37,7 +37,7 @@
*
* @(#)mtab_file.c 8.1 (Berkeley) 6/6/93
*
- * $Id: mtab_file.c,v 1.4 1997/02/22 16:02:27 peter Exp $
+ * $Id: mtab_file.c,v 1.5 1998/07/29 03:23:18 imp Exp $
*
*/
@@ -285,7 +285,7 @@ mntlist *mp;
tmpname[0] = '.'; tmpname[1] = '\0';
}
strcat(tmpname, "/mtabXXXXXX");
- tmpfd = mktemp(tmpname);
+ tmpfd = mkstemp(tmpname);
if (close(tmpfd) < 0)
plog(XLOG_ERROR, "Couldn't close tmp file descriptor: %m");
OpenPOWER on IntegriCloud