diff options
author | Jim Meyering <jim@meyering.net> | 2003-11-24 08:05:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-11-24 08:05:25 +0000 |
commit | b247044a919734b1937eac42bdfa39324ff56270 (patch) | |
tree | 9eb8158d6ae35b2407be7c161c51b8d48949a516 /tests/rm/fail-2eperm | |
parent | 4153ac3146eb55420c18d4ed690cd45376a2ba4d (diff) | |
download | coreutils-b247044a919734b1937eac42bdfa39324ff56270.tar.xz |
Handle another errno variant (HPUX, EPERM).
Diffstat (limited to 'tests/rm/fail-2eperm')
-rwxr-xr-x | tests/rm/fail-2eperm | 4 |
1 files changed, 3 insertions, 1 deletions
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 |