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

5
t/modetest.do Normal file
View file

@ -0,0 +1,5 @@
umask 0022
redo mode1
MODE="$(ls -l mode1 | cut -d' ' -f1)"
[ "$MODE" = "-rw-r--r--" ] || exit 78