--- xoverutil.c.orig	Tue Mar 16 22:30:06 1999
+++ xoverutil.c	Tue Mar 16 22:32:35 1999
@@ -518,7 +518,7 @@
 		    error, getcwd( s, 1024 ) );
 
 	strcpy( newfile, ".overview.XXXXXX" );
-	if ( (wfd=open( mktemp(newfile), O_WRONLY|O_CREAT|O_EXCL, 0664 )) ) {
+	if ( (wfd=mkstemp(newfile)) != -1) {
 	    struct iovec oooh[UIO_MAXIOV];
 	    int vi, vc, va;
 
@@ -571,8 +571,7 @@
 		   .overview file I think */
 	    }
 	} else {
-	    syslog( LOG_ERR, "open(O_WRONLY|O_CREAT|O_EXCL) of new "
-		    ".overview failed: %m" );
+	    syslog( LOG_ERR, "mkstemp of new .overview failed: %m" );
 	}
     }
     return 1;
