mirror of
https://github.com/golang/go
synced 2024-11-21 23:14:40 -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:
parent
63639dd237
commit
aac6afbb11
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user