diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2007-03-19 21:58:57 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2007-03-19 21:58:57 +0000 |
commit | e37fe028c558a3d0a80b347b745e162f549ea295 (patch) | |
tree | e5d690502ebdbc854a682ee119c7673c9536f77f /modules/acl | |
parent | a539e0a8fe5fc17c2e6c1840ba65cdba897dcef4 (diff) | |
download | gnulib-e37fe028c558a3d0a80b347b745e162f549ea295.tar.gz |
Add limited support for Solaris 10 ZFS-style ACLs: just enough to
handle file_has_acl.
* lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
* lib/acl.c: Move header inclusions and related macro defns into
lib/acl-internal.h.
(S_ISLNK): Remove defn, since that's now done for us.
(file_has_acl): Move to lib/file-has-acl.c.
Call acl_trivial if available. This is the crucial part of the fix.
(acl_entries): Move to lib/acl_entries.c. Now extern, since it's
shared within the library. Rewrite a bit, partly to make it compatible
with the GNU coding style.
* m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
Remove unnecessary double-quotes.
Don't test for acl_to_text; the build will catch that.
Replace acl_entries if it doesn't exist and it is needed.
Check for -lsec and acl_trivial (as used on Solaris 10).
* modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
lib/file-has-acl.c.
(Depends-on): Add sys_stat, for S_ISLNK.
Diffstat (limited to 'modules/acl')
-rw-r--r-- | modules/acl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/acl b/modules/acl index 969511535c..3211f307a3 100644 --- a/modules/acl +++ b/modules/acl @@ -4,11 +4,15 @@ Access control lists of files. (Unportable.) Files: lib/acl.h lib/acl.c +lib/acl-internal.h +lib/acl_entries.c +lib/file-has-acl.c m4/acl.m4 Depends-on: error quote +sys_stat configure.ac: AC_FUNC_ACL |