[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
acl: improve Tru64 support
From: |
Bruno Haible |
Subject: |
acl: improve Tru64 support |
Date: |
Tue, 3 Jun 2008 00:31:39 +0200 |
User-agent: |
KMail/1.5.4 |
Hi Jim,
On Tru64, when TMPDIR is set to /tmp, the 3 tests pass. However, when TMPDIR
is set to an NFS-mounted directory, the tests fail:
setacl: tmpfile0: can't set acl: Operation not supported on socket
PASS: test-file-has-acl.sh
/home/haible/testdir0/build/gltests/test-set-mode-acl: setting permissions for
`tmpfile1': Operation not supported on socket
mode = 700: tmpfile1 has wrong mode: -rw-------
FAIL: test-set-mode-acl.sh
/home/haible/testdir0/build/gltests/test-copy-acl: preserving permissions for
`tmpfile1': Operation not supported on socket
FAIL: test-copy-acl.sh
This fixes it. OK to apply?
2008-06-02 Bruno Haible <address@hidden>
* lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
it exists.
--- lib/acl-internal.h.orig 2008-06-03 00:18:51.000000000 +0200
+++ lib/acl-internal.h 2008-06-03 00:18:37.000000000 +0200
@@ -124,6 +124,9 @@
#if defined __APPLE__ && defined __MACH__ /* MacOS X */
# define ACL_NOT_WELL_SUPPORTED(Err) \
((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY
|| (Err) == ENOENT)
+#elif defined EOPNOTSUPP /* Tru64 NFS */
+# define ACL_NOT_WELL_SUPPORTED(Err) \
+ ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY
|| (Err) == EOPNOTSUPP)
#else
# define ACL_NOT_WELL_SUPPORTED(Err) \
((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY)
- acl: improve Tru64 support,
Bruno Haible <=