* fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
[gnulib.git] / lib / ChangeLog
index f519715..e21d1cb 100644 (file)
@@ -1,3 +1,195 @@
+2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
+       attempt to open for write; this always fails, at least on POSIX
+       hosts.  This reinstates the 2006-01-09 change, which was
+       inadvertently removed.
+
+2006-01-26  Bruno Haible  <bruno@clisp.org>
+            Paul Eggert  <eggert@cs.ucla.edu>
+
+       * stdbool_.h (_Bool)
+       [(! (defined __cplusplus || defined __BEOS__)
+         && !defined __GNUC__
+         && !(defined __HP_cc || defined __xlc__
+              || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
+              || defined __sgi))]:
+       #define to signed char in these cases too; this simplifies
+       the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
+       etc., separately) and makes it more conservative.
+
+2006-01-21  Jim Meyering  <jim@meyering.net>
+
+       Sync from the stable (b5) branch of coreutils:
+
+       * fts.c (fts_children): Don't let close() clobber errno from
+       failed fchdir().
+
+       * fts.c (fts_stat): When following a symlink-to-directory,
+       don't necessarily interpret stat-fails+lstat-succeeds as indicating
+       a dangling symlink.  That can also happen at least for ELOOP.
+       The fix: return FTS_SLNONE only when the stat errno is ENOENT.
+       FYI, this bug predates the inclusion of fts.c in coreutils.
+
+       * fts.c (fts_open): Put new maxarglen declaration and uses
+       in their own block, so pre-c99 compilers don't object.
+
+       Avoid the double-free (first in fts_read, second in fts_close) that
+       would occur when an `active' directory is made inaccessible (e.g.,
+       via chmod a-x) during a traversal.
+       * fts.c (fts_read): After a failed fchdir, update sp->fts_cur
+       before returning.  Reproduce this failure by
+       mkdir -p a/b; cd a; chmod a-x . b
+       Reported by Stavros Passas.
+
+2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * argp-namefrob.h: Bugfix. Remove stray #
+
+2006-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
+       warnings.
+       Reported by Paul Eggert.
+
+2006-01-25  Jim Meyering  <jim@meyering.net>
+
+       * fileblocks.c: Remove more useless parentheses.
+       * readutmp.h: Likewise.
+
+2006-01-24  Bruno Haible  <bruno@clisp.org>
+
+       * stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler already
+       has it.
+       Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
+       2005-11-26.
+
+       * stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as 'signed char'
+       to avoid problems with the built-in _Bool type.
+       Reported by Paul Eggert on 2005-11-26.
+
+2006-01-24  Jim Meyering  <jim@meyering.net>
+
+       * socket_.h: Remove useless parentheses in uses of cpp `defined'.
+
+2006-01-24  Simon Josefsson  <jas@extundo.com>
+
+       * socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
+       Bruno.
+
+2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Work around porting bugs reported by Dieter in
+       <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
+       * getopt.c (_NOPROTO): Remove; no longer needed.
+       Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
+       Include "getopt.h" first, to check interface.
+       (getenv): Declare only if defined HAVE_DECL_GETENV &&
+       !HAVE_DECL_GETENV.
+       * strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
+       (__strndup): Revert to K&R-style function dfns, the glibc style.
+       * strnlen.c: Don't claim it's taken from glibc; it's not.
+       (strnlen, __strnlen): Remove #defines and #undefs; not needed.
+       Include strnlen.h first, to get prototype properly.
+       (strnlen): Renamed from __strnlen.
+       Remove weak alias.
+
+2006-01-23  Ulrich Drepper  <drepper@redhat.com>
+
+       These changes imported from libc.
+       * getopt.c: Use __fxprintf instead of inline stream orientation
+       test and two separate function calls.
+       * strndup.c (__strndup): Add libc_hidden_def.
+
+2006-01-22  Bruno Haible  <bruno@clisp.org>
+
+       * vasnprintf.c (VASNPRINTF): In the computation of the size of the
+       temporary buffer for sprintf, take into account the precision also
+       for 'd', 'i', 'u', 'o', 'x', 'X'.
+
+2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * quotearg.c (quotearg_buffer_restyled): Add "default: break;"
+       to pacify gcc -Wswitch-default.
+
+2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * argp-help.c (usage_long_opt): Do not print DOC options.
+       (__argp_base_name): Removed
+       * argp-namefrob.h (__argp_basename): Removed definition. Was a
+       typo.
+       (__argp_base_name): Provide macro definition or extern declaration
+       depending on the configuration
+
+2006-01-20  Simon Josefsson  <jas@extundo.com>
+
+       * inet_ntop.h: Unconditionally include sys/socket.h.
+
+2006-01-19  Simon Josefsson  <jas@extundo.com>
+
+       * socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
+
+2006-01-12  Simon Josefsson  <jas@extundo.com>
+
+       * base64.c: Fix warning, reported by Bruno Haible
+       <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
+
+2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Sync from coreutils.
+       * md5.c: Fix commentary typos.
+       (alignof, UNALIGNED_P): No need for a GCC-specific version.
+       * md5.h (__attribute__): Remove; unused.
+       * sha1.c: Fix commentary to match md5 better.
+       * sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
+       so that we don't need to worry about alignment.  All uses changed.
+       This merges the 2005-10-28 md5 change into sha1.
+
+2006-01-11  Jim Meyering  <jim@meyering.net>
+
+       Sync from coreutils.
+       * md5.c (OP): Fix spacing.
+
+2006-01-11  Simon Josefsson  <jas@extundo.com>
+
+       * stdint_.h (SIZE_MAX): Add missing (.
+
+2006-01-10  Bruno Haible  <bruno@clisp.org>
+
+       * argp.h (__const): Remove macro. Use const instead.
+       * argp-fmtstream.h (__const): Likewise.
+       * glob_.h (__const): Remove macro.
+       * glob-libc.h: Use const instead of __const.
+
+2006-01-10  Jim Meyering  <jim@meyering.net>
+
+       Avoid the double-free (first in fts_read, second in fts_close) that
+       would occur when an `active' directory is made inaccessible (e.g.,
+       via chmod a-x) during a traversal.
+       * fts.c (fts_read): After a failed fchdir, update sp->fts_cur
+       before returning.  Reproduce this failure by
+       mkdir -p a/b; cd a; chmod a-x . b
+       Reported by Stavros Passas.
+
+       Sync from coreutils.
+       * sha1.c: Tweak grammar in a comment.
+
+2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * regex_internal.h (BITSET_WORD_BITS):
+       Work around a bug in 64-bit PGC (before version 6.1-2), where the
+       preprocessor mishandles large unsigned values as if they were signed.
+       Problem reported by Claudio Fontana in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
+
+2006-01-10  Simon Josefsson  <jas@extundo.com>
+
+       * socket_.h: New file.
+
+2006-01-10  Bruno Haible  <bruno@clisp.org>
+
+       * localcharset.c: Update from GNU gettext.
+
 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
 
        Sync from coreutils.