1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

Handle another errno variant (HPUX, EPERM).

This commit is contained in:
Jim Meyering
2003-11-24 08:05:25 +00:00
parent 4153ac3146
commit b247044a91

View File

@@ -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