Targets created from stdout should be rw-, not rwx.

I had forgotten to pass the create mode to open().  Oops!
This commit is contained in:
Avery Pennarun 2010-11-24 02:26:15 -08:00
commit 83dd52c209
6 changed files with 10 additions and 5 deletions

View file

@ -76,7 +76,7 @@ class BuildJob:
return self._after2(1)
state.stamp(dofile)
unlink(tmpname)
ffd = os.open(tmpname, os.O_CREAT|os.O_RDWR|os.O_EXCL)
ffd = os.open(tmpname, os.O_CREAT|os.O_RDWR|os.O_EXCL, 0666)
close_on_exec(ffd, True)
self.f = os.fdopen(ffd, 'w+')
# this will run in the dofile's directory, so use only basenames here