From ae66a6b2b0f0e013828617a1de3c72535a45e19d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Dec 2001 09:28:50 +0000 Subject: [PATCH] Also accept SunOS4's `Not owner' diagnostic. --- tests/touch/fail-diag | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/touch/fail-diag b/tests/touch/fail-diag index f1fd037b69..6e2b49a16e 100755 --- a/tests/touch/fail-diag +++ b/tests/touch/fail-diag @@ -38,7 +38,15 @@ touch: setting times of `/': Permission denied touch: creating `/no/such-dir': No such file or directory EOF -cmp out exp || fail=1 +cmp out exp || { + # On SunOS4, EPERM is `Not owner' + cat > exp2 <<\EOF +touch: setting times of `/': Not owner +touch: creating `/no/such-dir': No such file or directory +EOF + cmp out exp2 || fail=1 +} + test $fail = 1 && diff out exp 2> /dev/null (exit $fail); exit -- 2.47.3