Set permissions of named pipes created by the test runner to 0600

This commit is contained in:
Craig Barnes 2014-01-24 00:24:10 +00:00
parent 83556da918
commit 0dcf6d9156

View file

@ -31,7 +31,7 @@ for TEXT in "$TESTDIR"/*.text; do
test -f "$PIPE" -a -n "$PIPE" || abort "mktemp failed"
trap 'rm -f "$PIPE"' EXIT INT TERM HUP
rm -f "$PIPE"
mkfifo "$PIPE" || abort "unable to create named pipe"
mkfifo -m 0600 "$PIPE" || abort "unable to create named pipe"
$SCRIPT "$TEXT" | $TIDY > "$PIPE" &
DIFF=$($TIDY "$HTML" | diff "$PIPE" -)