From 5437faa28c0cf86c7241f523909ce33ad4839672 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Tue, 16 Oct 2001 17:19:18 +0000 Subject: Merge assorted patches from the dev. version, as approved by PWS. Read ChangeLog for details. --- Test/C02cond.ztst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Test/C02cond.ztst') diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index b575e92be..b320634d5 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -85,7 +85,12 @@ fi 0dD:-p cond - [[ -r zerolength && ! -r unmodish ]] + if (( EUID == 0 )); then + print -u8 'Warning: Not testing [[ ! -r file ]] (root reads anything)' + [[ -r zerolength && -r unmodish ]] + else + [[ -r zerolength && ! -r unmodish ]] + fi 0:-r cond [[ -s nonzerolength && ! -s zerolength ]] -- cgit 1.4.1