Add limited support for Solaris 10 ZFS-style ACLs: just enough to
[gnulib.git] / ChangeLog
index 9eef4ac..2c8bd84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,355 @@
+2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.
+
+2007-03-19  Ben Pfaff  <blp@gnu.org>
+
+       * doc/gnulib.texi: Fix typos.
+       Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
+
+2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
+       If size is zero here, buf must be zero.
+
+2007-03-19  Simon Josefsson  <simon@josefsson.org>
+
+       * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
+       <bruno@clisp.org>.
+
+2007-03-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
+       Suggested by Eric Blake.
+
+2007-03-18  Ben Pfaff  <blp@gnu.org>
+
+       * doc/relocatable.texi: Recommend using as prefix a directory
+       that does not exist and will never be created.  Based on
+       discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
+       and others.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fchownat.c: Include lchown.h.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       Fix endless loop when the given allocated size was > INT_MAX.
+       * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
+       (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
+       larger than INT_MAX, or when it grow to a value larger than INT_MAX.
+       * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
+       * lib/sprintf.c (sprintf): Likewise.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-argp-2.sh (func_compare): Output a context diff.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
+       locale's decimal-point character.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
+       before comparing it. Needed because on some platforms (e.g. x86) a
+       'long double' occupies less bytes than sizeof (long double).
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-crc.c (main): Make printf statements 64-bit clean.
+       * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
+       * tests/test-getaddrinfo.c (simple): Likewise.
+       * tests/test-read-file.c (main): Likewise.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-dirname.c (main): Make printf statements 64-bit clean.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
+       unused variable.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-c-strcasecmp.c: Include c-strcase.h.
+       * tests/test-c-strncasecmp.c: Likewise.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * modules/stdlib (Depends-on): Add unistd.
+       * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
+       Needed for MacOS X 10.3.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistr/u-strdup.h: Include <stdlib.h>.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
+
+2007-03-17  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): Update .cvsignore and .gitignore files
+       to reflect files copied from gnulib (with or without modifications).
+       Suggested by Jim Meyering.
+
+2007-03-17  Eric Blake  <ebb9@byu.net>
+
+       * NEWS: Document stdlib change from 2007-02-18.
+
+2007-03-17  Jim Meyering  <jim@meyering.net>
+
+       Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
+       * build-aux/bootstrap: Put ""s around use of $build_aux, in case
+       someone uses a name containing shell meta-characters.
+       Reported by Alfred M. Szmidt.
+
+       * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
+
+2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
+
+       * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
+       and copy gettext configuration files only if configure.ac contains
+       a use of AM_GNU_GETTEXT_VERSION.
+
+2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
+
+       * build-aux/bootstrap (gnulib_name): New variable.
+       (gnulib_tool_options): Use it.
+
+2007-03-13  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-des.c: Use new namespace.
+
+2007-03-15  Bruno Haible  <bruno@clisp.org>
+
+       * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
+       Reported by James Youngman <jay@gnu.org>.
+
+2007-03-15  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glob.c (glob): Add 'restrict' so that prototype matches the
+       declared prototype. Needed with cc on OSF/1 5.1.
+
+2007-03-15  Bruno Haible  <bruno@clisp.org>
+
+       * lib/gl_list.h (gl_listelement_dispose_fn): New type.
+       (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
+       (struct gl_list_implementation): Add dispose_fn argument to the
+       'create_empty', 'create' methods.
+       (struct gl_list_impl_base): Add field 'dispose_fn'.
+       * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
+       argument.
+       * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
+       dispose_fn argument.
+       (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
+       dispose_fn on the dropped values.
+       * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
+       dispose_fn argument.
+       (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
+       dropped values.
+       * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
+       (gl_tree_remove_node): Call dispose_fn on the dropped value.
+       * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
+       (gl_tree_remove_node): Call dispose_fn on the dropped value.
+       * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
+       argument.
+       (gl_tree_list_free): Call dispose_fn on the dropped values.
+       * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
+       the dropped values.
+       * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
+       Add dispose_fn argument.
+       (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
+       Call dispose_fn on the dropped values.
+       * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
+       Add dispose_fn argument.
+       (gl_sublist_create): Initialize the 'dispose_fn' field.
+       * lib/clean-temp.c (create_temp_dir, register_fd): Update.
+       * tests/test-array_list.c (main): Update.
+       * tests/test-carray_list.c (main): Update.
+       * tests/test-avltree_list.c (main): Update.
+       * tests/test-rbtree_list.c (main): Update.
+       * tests/test-avltreehash_list.c (main): Update.
+       * tests/test-rbtreehash_list.c (main): Update.
+       * tests/test-linked_list.c (main): Update.
+       * tests/test-linkedhash_list.c (main): Update.
+       * tests/test-array_oset.c (main): Update.
+
+2007-03-15  Bruno Haible  <bruno@clisp.org>
+
+       * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
+       (gl_oset_create_empty): Add dispose_fn argument.
+       (struct gl_oset_implementation): Add dispose_fn argument to
+       'create_empty' method.
+       (struct gl_oset_impl_base): Add dispose_fn field.
+       * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
+       * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
+       (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
+       values.
+       * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
+       (gl_tree_oset_free): Call dispose_fn on the dropped values.
+       * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
+       dropped value.
+       * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
+       dropped value.
+       * tests/test-array_oset.c (main): Update.
+       * tests/test-avltree_oset.c (main): Update.
+       * tests/test-rbtree_oset.c (main): Update.
+       * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
+
+2007-03-13  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-stdbool.c (i): Update after last patch.
+
+2007-03-12  Bruno Haible  <bruno@clisp.org>
+
+       * lib/quotearg.c: Include <wctype.h> early, before the definition of
+       the iswprint macro. Needed on Solaris 2.5.1.
+
+2007-03-12  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-printf-frexp.c (main): Declare x as volatile.
+
+2007-03-12  Simon Josefsson  <simon@josefsson.org>
+
+       * doc/gnulib.texi (Build robot for gnulib): New section.
+
+2007-03-12  Jim Meyering  <jim@meyering.net>
+
+       * build-aux/bootstrap: New file.
+       * build-aux/bootstrap.conf: New file, from coreutils.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
+
+2007-03-12  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
+       avoid collisions with 'des_setkey'.  Reported by Bruno Haible
+       <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
+       compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
+       formula. Needed for SunPRO C 5.0.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * modules/long-options (Depends-on): Add getopt.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * modules/modechange (Depends-on): Add stdbool.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * modules/i-ring (Depends-on): Add stdbool.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * modules/gc-des (Depends-on): Add stdbool.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (sprintf): Undefine.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
+       initializers in SunPRO C and Compaq C compilers.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
+       decrementing code ANSI C compliant.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
+       Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
+       <stdbool.h> substitute doesn't pass.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
+
+2007-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_create_megatestdir): Create also an autobuild
+       script, for submission to autobuild.josefsson.org.
+
+2007-03-10  Bruno Haible  <bruno@clisp.org>
+
+       * modules/canonicalize-lgpl-tests: New file.
+       * tests/test-canonicalize-lgpl.sh: New file.
+       * tests/test-canonicalize-lgpl.c: New file.
+
+       * modules/c-strcase-tests: New file.
+       * tests/test-c-strcase.sh: New file.
+       * tests/test-c-strcasecmp.c: New file.
+       * tests/test-c-strncasecmp.c: New file.
+
+       * modules/atexit-tests: New file.
+       * tests/test-atexit.sh: New file.
+       * tests/test-atexit.c: New file.
+
+2007-03-10  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-binary-io.sh: Use temporary filenames that are not so
+       likely to clash with those of other tests (in a parallel make).
+       * tests/test-binary-io.c: Likewise.
+
+2007-03-10  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
+       fallback; use #error instead.
+       Suggested by Simon Josefsson.
+
 2007-03-10  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like