fdopendir: fix bug on MacOS X when low on file descriptors
[pspp] / ChangeLog
index e36599e5e07a6e95184735a2bb020bfd5b3887d0..4d9c4ea555be80d7757b6aaf1177d29c8b9dcf9b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,40 @@
+2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       fdopendir: fix bug on MacOS X when low on file descriptors
+
+       * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
+       (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
+       All callers changed.
+       (fdopendir): Invoke save_cwd at the top level, not after using
+       multiple dup() calls to use up file descriptors.  Then retry
+       fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
+       less than the maximum number of open file descriptors, because
+       save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
+       on Mac OS X 10.6.4 for tar 1.24
+       <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
+       <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
+       and for tar 1.25
+       <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
+
+2010-11-07  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Support I flag on glibc systems.
+       * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
+       * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
+       * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
+       snprintf function.
+       * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
+       glibc systems.
+       * tests/test-vasnprintf-posix3.c: New file.
+       * modules/vasnprintf-posix-tests (Files): Add it.
+       (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
+
+2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
+
+       [html] Fix copy/paste bug: Use unique name for compiler warnings.
+       * MODULES.html.sh: For compiler warnings, use name
+       `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
+
 2010-11-05  Eric Blake  <eblake@redhat.com>
 
        ceil, floor: avoid spurious failure with icc