Hi,

When building coreutils-6.12 with some patches from git, we noticed that
the mkdir/selinux test fails. AIX-5.3 output:

failed to set default file creation context to `invalid-selinux-context': 
Unsupported attribute value

The misc/shred-exact test failed on hp-ux because fdatasync failed with
EISDIR for '.' multiple times.

Thanks,
Peter
-- 
Peter O'Gorman
[EMAIL PROTECTED]
Index: tests/mkdir/selinux
===================================================================
--- tests/mkdir/selinux.orig    2008-05-27 11:39:18.000000000 +0000
+++ tests/mkdir/selinux 2008-06-24 16:37:41.033617421 +0000
@@ -49,6 +49,7 @@
     -e 's/ Unknown system error$//'    \
     -e 's/ Operation not supported$//' \
     -e 's/ Function not implemented$//'        \
+    -e 's/ Unsupported attribute value$//'     \
     -e 's/ No such file or directory$//' out > k || fail=1
   mv k out || fail=1
   compare out exp || fail=1
Index: src/shred.c
===================================================================
--- src/shred.c.orig    2008-06-24 06:35:14.000000000 +0000
+++ src/shred.c 2008-06-25 14:26:30.887338772 +0000
@@ -295,7 +295,7 @@
   if (fdatasync (fd) == 0)
     return 0;
   err = errno;
-  if (err != EINVAL && err != EBADF)
+  if (err != EINVAL && err != EBADF && err != EISDIR)
     {
       error (0, err, _("%s: fdatasync failed"), qname);
       errno = err;
@@ -306,7 +306,7 @@
   if (fsync (fd) == 0)
     return 0;
   err = errno;
-  if (err != EINVAL && err != EBADF)
+  if (err != EINVAL && err != EBADF && err != EISDIR)
     {
       error (0, err, _("%s: fsync failed"), qname);
       errno = err;
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to