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:
parent
190dd657d8
commit
83dd52c209
6 changed files with 10 additions and 5 deletions
|
|
@ -76,7 +76,7 @@ class BuildJob:
|
||||||
return self._after2(1)
|
return self._after2(1)
|
||||||
state.stamp(dofile)
|
state.stamp(dofile)
|
||||||
unlink(tmpname)
|
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)
|
close_on_exec(ffd, True)
|
||||||
self.f = os.fdopen(ffd, 'w+')
|
self.f = os.fdopen(ffd, 'w+')
|
||||||
# this will run in the dofile's directory, so use only basenames here
|
# this will run in the dofile's directory, so use only basenames here
|
||||||
|
|
|
||||||
1
t/.gitignore
vendored
1
t/.gitignore
vendored
|
|
@ -7,3 +7,4 @@ d
|
||||||
test.args
|
test.args
|
||||||
test2.args
|
test2.args
|
||||||
/passfail
|
/passfail
|
||||||
|
mode1
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
redo example/clean curse/clean deps/clean "space dir/clean"
|
redo example/clean curse/clean deps/clean "space dir/clean"
|
||||||
rm -f c c.c c.c.c c.c.c.b c.c.c.b.b d
|
rm -f c c.c c.c.c c.c.c.b c.c.c.b.b d mode1
|
||||||
rm -f hello [by]ellow *.o *~ .*~ CC LD passfail
|
rm -f hello [by]ellow *.o *~ .*~ CC LD passfail
|
||||||
|
|
||||||
|
|
|
||||||
1
t/mode1.do
Normal file
1
t/mode1.do
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
echo hello
|
||||||
5
t/modetest.do
Normal file
5
t/modetest.do
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
umask 0022
|
||||||
|
redo mode1
|
||||||
|
MODE="$(ls -l mode1 | cut -d' ' -f1)"
|
||||||
|
[ "$MODE" = "-rw-r--r--" ] || exit 78
|
||||||
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
redo-ifchange all
|
redo-ifchange all
|
||||||
./hello >&2
|
./hello >&2
|
||||||
redo deltest deltest2 test.args test2.args passfailtest \
|
redo deltest deltest2 test.args test2.args passfailtest \
|
||||||
curse/test deps/test "space dir/test"
|
curse/test deps/test "space dir/test" modetest
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue