1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:57:56 -07:00

gopack: remove warning from the use of mktemp

gcc-4.6 considers mktemp to be racey

R=golang-dev, rsc, iant
CC=golang-dev
https://golang.org/cl/4602050
This commit is contained in:
Dave Cheney 2011-06-09 18:04:26 -07:00 committed by Ian Lance Taylor
parent 63639dd237
commit aac6afbb11

View File

@ -1536,8 +1536,7 @@ page(Arfile *ap)
bp = ap->head;
if (!ap->paged) { /* not yet paged - create file */
ap->fname = mktemp(ap->fname);
ap->fd = create(ap->fname, ORDWR|ORCLOSE, 0600);
ap->fd = mkstemp(ap->fname);
if (ap->fd < 0) {
fprint(2,"gopack: can't create temp file\n");
return 0;