diff options
author | Jim Meyering <jim@meyering.net> | 2005-11-16 09:29:32 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-11-16 09:29:32 +0000 |
commit | 9a233da2ab5a645c880b980e1cab0abeb696b36b (patch) | |
tree | 450c2713206c54fa43819576df411c3b71dbae8e | |
parent | 8645d522c081bc3bcce733f9c7367d7ee02be841 (diff) | |
download | coreutils-9a233da2ab5a645c880b980e1cab0abeb696b36b.tar.xz |
Accommodate HPUX. It appears to fail with EACCES rather than EPERM.
Reported by Peter O'Gorman here:
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
-rwxr-xr-x | tests/cp/fail-perm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cp/fail-perm b/tests/cp/fail-perm index 218785a9f..5fa0332a4 100755 --- a/tests/cp/fail-perm +++ b/tests/cp/fail-perm @@ -45,9 +45,15 @@ cp: accessing `symlink': Permission denied EOF cp F symlink 2> out && fail=1 +# HPUX appears to fail with EACCES rather than EPERM. +# Transform their diagnostic +# ...: The file access permissions do not allow the specified action. +# to the expected one: +sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out cmp out exp || { (diff -c out exp) 2> /dev/null; fail=1; } cp --target-directory=symlink F 2> out && fail=1 +sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out cmp out exp || { (diff -c out exp) 2> /dev/null; fail=1; } chmod 700 D |