summaryrefslogtreecommitdiff
path: root/tests/read-only-files
diff options
context:
space:
mode:
Diffstat (limited to 'tests/read-only-files')
-rw-r--r--tests/read-only-files2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/read-only-files b/tests/read-only-files
index bcc11a4..febaeb8 100644
--- a/tests/read-only-files
+++ b/tests/read-only-files
@@ -16,7 +16,7 @@ use_tmpdir
: > read-only
chmod a-w read-only
-if : 2> /dev/null > read-only; then
+if ( : 2> /dev/null > read-only ); then
echo "Files with read-only permissions are writable" \
"(probably running as superuser)" >&2
exit 77