bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX tests failures


From: Jim Meyering
Subject: Re: AIX tests failures
Date: Sun, 28 May 2006 11:04:05 +0200

Ralf Wildenhues <address@hidden> wrote:

> With coreutils 5.96, I get three failures on AIX 4.3.3, namely:
> cp/fail-perm, rm/inaccessible, help-version.
>
> Verbose output is below.  The last one looks funny. :-)
...
> ! cp: accessing `symlink': The file access permissions do not allow the 
> specified action.
> --- 1 ----
> ! cp: accessing `symlink': Permission denied
...
> FAIL: fail-perm

Thanks.  This one is fixed on the trunk.
Here's the patch that I've just put on the branch as well.

Index: tests/cp/fail-perm
===================================================================
RCS file: /fetish/cu/tests/cp/fail-perm,v
retrieving revision 1.8
diff -u -p -r1.8 fail-perm
--- tests/cp/fail-perm  28 Jun 2004 18:47:24 -0000      1.8
+++ tests/cp/fail-perm  28 May 2006 08:57:54 -0000
@@ -45,9 +45,15 @@ cp: accessing `symlink': Permission deni
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]