Make chdir-safer.c slightly safer.
[pspp] / ChangeLog
index 03e2df74053b33c09aa5118145a2c7dce3c9a17e..67653c1192ad1e2c1f355e24b799fd76d3fdafb6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,169 @@
+2008-05-10  Jim Meyering  <meyering@redhat.com>
+
+       Make chdir-safer.c slightly safer.
+       * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
+       not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
+
+       Avoid compile failure on systems without ELOOP (like mingw).
+       * lib/chdir-safer.c (ELOOP): Define if not already defined.
+       Reported by Bruno Haible.
+
+2008-05-10  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
+       (is_utf8_encoding): Use a case-insensitive comparison.
+       * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
+       streq.
+
+2008-05-10  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
+       (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
+       * lib/unilbrk/ulc-common.h (iconv_string_length,
+       iconv_string_keeping_offsets): Remove declarations.
+       * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
+       Don't include <iconv.h>, streq.h, xsize.h.
+       (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
+       conversion.
+       * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
+       <iconv.h>, streq.h, xsize.h.
+       (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
+       conversion.
+       * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
+       * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
+       uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
+       * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
+
+2008-05-10  Bruno Haible  <bruno@clisp.org>
+
+       * modules/unilbrk/ulc-width-linebreaks-tests: New file.
+       * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
+
+       * modules/unilbrk/u32-width-linebreaks-tests: New file.
+       * tests/unilbrk/test-u32-width-linebreaks.c: New file.
+
+       * modules/unilbrk/u16-width-linebreaks-tests: New file.
+       * tests/unilbrk/test-u16-width-linebreaks.c: New file.
+
+       * modules/unilbrk/u8-width-linebreaks-tests: New file.
+       * tests/unilbrk/test-u8-width-linebreaks.c: New file.
+
+       * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
+       * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
+
+       * modules/unilbrk/u32-possible-linebreaks-tests: New file.
+       * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
+
+       * modules/unilbrk/u16-possible-linebreaks-tests: New file.
+       * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
+
+       * modules/unilbrk/u8-possible-linebreaks-tests: New file.
+       * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
+
+2008-05-10  Bruno Haible  <bruno@clisp.org>
+
+       Split up 'linebreak' module.
+       * lib/unilbrk.h: New file, based on lib/linebreak.h.
+       * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
+       * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
+       modifications.
+       * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
+       * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
+       * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
+       lib/linebreak.c.
+       * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
+       lib/linebreak.c.
+       * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
+       lib/linebreak.c.
+       * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
+       * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
+       * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
+       lib/linebreak.c.
+       * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
+       lib/linebreak.c.
+       * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
+       lib/linebreak.c.
+       * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
+       lib/linebreak.c.
+       * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
+       lib/linebreak.c.
+       * modules/unilbrk/base: New file.
+       * modules/unilbrk/tables: New file.
+       * modules/unilbrk/u8-possible-linebreaks: New file.
+       * modules/unilbrk/u16-possible-linebreaks: New file.
+       * modules/unilbrk/u32-possible-linebreaks: New file.
+       * modules/unilbrk/ulc-common: New file.
+       * modules/unilbrk/ulc-possible-linebreaks: New file.
+       * modules/unilbrk/u8-width-linebreaks: New file.
+       * modules/unilbrk/u16-width-linebreaks: New file.
+       * modules/unilbrk/u32-width-linebreaks: New file.
+       * modules/unilbrk/ulc-width-linebreaks: New file.
+       * lib/linebreak.h: Remove file.
+       * lib/linebreak.c: Remove file.
+       * m4/linebreak.m4: Remove file.
+       * modules/linebreak: Remove file.
+       * NEWS: Mention the changes.
+
+2008-05-09  Eric Blake  <ebb9@byu.net>
+
+       Add xmemdup0.
+       * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
+       implementation.
+       * lib/xmalloc.c (xmemdup0): New C implementation.
+
+2008-05-08  Bruno Haible  <bruno@clisp.org>
+
+       * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
+
+2008-05-07  Eric Blake  <ebb9@byu.net>
+
+       Support cross-compilation of <wctype.h>.
+       * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
+       AC_CACHE_CHECK.
+
+2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
+
+       * build-aux/vc-list-files: Add support for bzr.
+
+2008-05-03  Jim Meyering  <meyering@redhat.com>
+
+       avoid failed assertion with tight malloc
+       * tests/test-getndelim2.c: Correct an off-by-one assertion.
+
+2008-05-03  Simon Josefsson  <simon@josefsson.org>
+
+       * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
+       are needed from arpa/inet.h.
+       * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
+       Reported by Bruno Haible.
+
+2008-05-02  Jim Meyering  <meyering@redhat.com>
+
+       avoid compilation error on FreeBSD 6
+       * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
+
+2008-05-01  Jim Meyering  <meyering@redhat.com>
+
+       useless-if-before-free: correct --help's exit status description
+       * build-aux/useless-if-before-free (usage): Like grep, exit 0
+       for one or more matches, etc.  Reported by Bruno Haible.
+
+       vc-list-files: make the stand-alone gnulib test work
+       * modules/vc-list-files-tests (configure.ac):
+       Define and AC_SUBST abs_aux_dir.
+       (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
+       $(abs_top_srcdir) to each script and having each of them
+       duplicate the work of setting PATH, set PATH here, using
+       the new variable, abs_aux_dir instead.
+       * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
+       * tests/test-vc-list-files-git.sh: Likewise.
+       Reported by Bruno Haible.
+
+2008-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/getndelim2.c (getndelim2): Fix newsize computation during
+       reallocation. Rename 'done' to 'found_delimiter'.
+
 2008-05-01  Jim Meyering  <meyering@redhat.com>
 
        vc-list-files: accommodate /bin/sh like the one from Solaris 10