From b247044a919734b1937eac42bdfa39324ff56270 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 24 Nov 2003 08:05:25 +0000 Subject: Handle another errno variant (HPUX, EPERM). --- tests/rm/fail-2eperm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/rm') diff --git a/tests/rm/fail-2eperm b/tests/rm/fail-2eperm index 698ca4eff..7ee0e2a14 100755 --- a/tests/rm/fail-2eperm +++ b/tests/rm/fail-2eperm @@ -44,7 +44,9 @@ esac setuidgid $NON_ROOT_USERNAME rm -rf a 2> out-t && fail=1 # On some systems, we get `Not owner'. Convert it. -sed 's/Not owner/Operation not permitted/' out-t > out +# On other systems (HPUX), we get `Permission denied'. Convert it, too. +onp='Operation not permitted' +sed "s/Not owner/$onp/;s/Permission denied/$onp/" out-t > out cat <<\EOF > exp rm: cannot remove `a/b': Operation not permitted -- cgit v1.2.3-70-g09d2