cc: create .$O files with DMTMP
This commit is contained in:
parent
e390486e92
commit
88a8ca5c8d
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ compile(char *file, char **defs, int ndef)
|
||||||
dup(2, 1);
|
dup(2, 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
c = mycreat(outfile, 0664);
|
c = mycreat(outfile, 0664 | DMTMP);
|
||||||
if(c < 0) {
|
if(c < 0) {
|
||||||
diag(Z, "cannot open %s - %r", outfile);
|
diag(Z, "cannot open %s - %r", outfile);
|
||||||
outfile = 0;
|
outfile = 0;
|
||||||
|
|
Loading…
Reference in a new issue