--- sbr/m_tmpfil.c.orig	Thu Sep  9 22:22:41 1999
+++ sbr/m_tmpfil.c	Tue Feb 29 18:06:52 2000
@@ -14,15 +14,18 @@
     static char tmpfil[BUFSIZ];
 
     snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template);
-/*
-  Mkstemp work postponed until later -Doug
 #ifdef HAVE_MKSTEMP
-    unlink(mkstemp(tmpfil));
+    {
+	int fd;
+
+	fd = mkstemp (tmpfil);
+	if (fd == -1)
+	    return 0;
+	close (fd);
+	unlink (tmpfil);
+    }
 #else
-*/
     unlink(mktemp(tmpfil));
-/*
 #endif
-*/
     return tmpfil;
 }
