diff options
author | Craig Barnes <cr@igbarn.es> | 2014-01-24 00:24:10 +0000 |
---|---|---|
committer | Craig Barnes <cr@igbarn.es> | 2014-01-24 00:24:10 +0000 |
commit | 0dcf6d9156b646f1fff68bf528f017ab0ea779aa (patch) | |
tree | cec3ccfac5b0d4504458c1336fa2c792a771ecea /test | |
parent | 83556da91816fa4864f50a2dbaa8714e85862a20 (diff) | |
download | rust-hoedown-0dcf6d9156b646f1fff68bf528f017ab0ea779aa.tar.gz |
Set permissions of named pipes created by the test runner to 0600
Diffstat (limited to 'test')
-rwxr-xr-x | test/runner.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runner.sh b/test/runner.sh index 827fa8f..d60eac5 100755 --- a/test/runner.sh +++ b/test/runner.sh @@ -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" -) |