cc: create .$O files with DMTMP

This commit is contained in:
Jacob Moody 2021-06-24 13:53:37 +00:00
parent e390486e92
commit 88a8ca5c8d

View file

@ -229,7 +229,7 @@ compile(char *file, char **defs, int ndef)
dup(2, 1);
}
} else {
c = mycreat(outfile, 0664);
c = mycreat(outfile, 0664 | DMTMP);
if(c < 0) {
diag(Z, "cannot open %s - %r", outfile);
outfile = 0;