summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2021-06-24 13:53:37 +0000
committerJacob Moody <moody@posixcafe.org>2021-06-24 13:53:37 +0000
commit88a8ca5c8de86f1f3e5b43a490e0e70c6b456072 (patch)
treee0033fd464f3900ae81935fb95cccf27db1ea6da
parente390486e927158c6b12b3f5242535998c20baf8d (diff)
downloadplan9front-88a8ca5c8de86f1f3e5b43a490e0e70c6b456072.tar.xz
cc: create .$O files with DMTMP
-rw-r--r--sys/src/cmd/cc/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/cc/lex.c b/sys/src/cmd/cc/lex.c
index f8746042c..7e9b11d3e 100644
--- a/sys/src/cmd/cc/lex.c
+++ b/sys/src/cmd/cc/lex.c
@@ -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;