lib


Log

Author Commit Date CI Message
Simon Josefsson 08c03e59 2006-06-16T19:40:12 Add read-file module.
Bruno Haible 21fc432f 2006-06-16T17:34:33 Comments from 2006-04-27.
Bruno Haible ca228dfa 2006-06-16T13:29:51 Rewrite module 'stdint' to be fully autoconfiguring.
Paul Eggert 85a134e9 2006-06-11T07:12:27 * getdate.y (__attribute__): Don't define if already defined. Problem reported by Larry Jones. * utimens.c (__attribute__): Likewise.
Paul Eggert 1b85e216 2006-06-05T05:21:20 * regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun reported by Andreas Schwab.
Bruno Haible b90eddc3 2006-05-30T19:14:05 Work around broken AIX 5.1 strndup function.
Simon Josefsson 0a2c2d3b 2006-05-26T10:13:59 2006-05-26 Martin Lambers <marlam@marlam.de> * getpass.c: Updates the test for the native W32 API, and adds missing includes, thus fixing compilation warnings.
Paul Eggert 20a2d460 2006-05-25T21:55:35 * tempname.c (small_open, large_open): New macros. (__open, __open64) [!_LIBC]: Remove. (__gen_tempname): Use small_open and large_open instead of __open and __open64. This fixes a portability bug on HP-UX 11.11i reported by Simon Wing-Tang in <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
Sergey Poznyakoff c4e9bf46 2006-05-25T07:03:17 Update
Sergey Poznyakoff d9e80c64 2006-05-25T07:02:20 (excluded_file_name): New prototype
Sergey Poznyakoff 530a0d3e 2006-05-25T07:02:07 (exclude_fnmatch): New function. (excluded_file_name): Call exclude_fnmatch.
Bruno Haible b680ccf8 2006-05-24T11:48:51 Be resilient about NULL pointer arguments.
Paul Eggert c7d93255 2006-05-19T17:49:21 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>. Use the usual Autoconf way to include <time.h> and/or sys/time.h. (my_usleep): Don't mishandle maximum value. * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use gl_ rather than jm_. Link, don't run, so that cross-compiles are allowed. Check that resulting type is arithmetic. Move AC_REQUIRE and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're not really conditional on the cache. (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
Jim Meyering b7f6c3d2 2006-05-19T13:00:34 *** empty log message ***
Jim Meyering beefd70d 2006-05-19T13:00:12 Correct an outdated comment. From Bruno Haible.
Bruno Haible 0c5bfbac 2006-05-17T13:16:53 Cygwin portability.
Bruno Haible 8bf3eb7f 2006-05-17T10:46:10 Cygwin recognition fix.
Jim Meyering 5912e24c 2006-05-11T19:50:07 sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From James Lemley.
Simon Josefsson 11fdc4d4 2006-05-11T07:33:27 2006-05-10 Paul Eggert <eggert@cs.ucla.edu> * md4.c (rol): Cast right-shift arg to uint32_t to prevent unwanted sign propagation, e.g., on hosts with 64-bit int. There still are some problems with reeelly weird theoretical hosts (e.g., 33-bit int) but it's not worth worrying about now. * sha1.c (rol): Likewise. (K1, K2, K3, K4): Remove unnecessary L suffix.
Simon Josefsson 707a7ac4 2006-05-11T06:36:07 2006-05-10 Paul Eggert <eggert@cs.ucla.edu> * crc.c (crc32_update): Remove unnecessary L suffix.
Simon Josefsson ea0ec1ba 2006-05-10T14:06:26 2006-05-10 Bruno Haible <bruno@clisp.org> * des.c: Cast to avoid warnings.
Simon Josefsson 726347d0 2006-05-10T13:37:20 * md4.c: Typo fix, update copyright years. (K1, K2): Don't use L because it turn computations into 64-bit on 64-bit platforms.
Bruno Haible f46a1e87 2006-05-09T17:26:15 Recognize the special case of a string concatenation in xvasprintf.
Bruno Haible 2bdc56fb 2006-05-03T12:39:46 Shorter URL.
Paul Eggert 5e11f44b 2006-05-02T23:39:59 * doc/verify.texi: New file. * lib/verify.h: Document the internals better.
Bruno Haible 0d55cb35 2006-04-29T16:16:07 Make generic.
Derek R. Price d3d0152e 2006-04-26T15:55:46 * lib/wait-process.c, lib/wait-process.h, lib/csharpcomp.c, lib/execute.c, lib/javacomp.c: Back out previous change.
Derek R. Price 6d8d4e52 2006-04-25T20:58:26 * lib/wait-process.h (wait_subprocess): Accept a new exitsignal argument. * lib/wait-process.c (wait_subprocess): Always set *exitsignal to 0 when present and set it to the offending signal when the child exits due to a signal. * lib/csharpcomp.c, lib/execute.c, lib/javacomp.c: Update all callers.
Paul Eggert 707f6787 2006-04-25T10:30:13 * getdate.y (get_date): When adding relative date, start with the initial time, not with the result of the first mktime call.
Bruno Haible eb750bc6 2006-04-24T11:38:06 Include <unistd.h> unconditionally.
Bruno Haible f3000fe7 2006-04-24T11:32:00 Call fclose() in all cases, even in the failure case.
Simon Josefsson e11dc9d0 2006-04-19T14:30:15 Doc fix.
Derek R. Price b42a9453 2006-04-19T12:54:02 * lib/inttypes.h: Correct grammar in comment.
Simon Josefsson 21fe180b 2006-04-18T22:25:51 Doc fix.
Derek R. Price d58cf1a8 2006-04-18T17:20:47 * modules/inttypes: New file. * modules/strtoimax, modules/strtoumax: Depend on inttypes. * lib/inttypes.h: New file. * lib/strtoimax.c: Assume <inttypes.h>. * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next: New files.
Paul Eggert 6832fe5c 2006-04-15T07:40:54 * utimens.c (futimens): glibc futimesat messes up if /proc isn't mounted. Problem reported by Kir Kolyshkin.
Paul Eggert 4a2097ae 2006-04-13T22:14:12 * regcomp.c (init_dfa): Don't use wchar_t or wctype_t if RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via Derek R. Price. * regex.h (RE_DUP_MAX): Update comment to match current implementation.
Paul Eggert 78ae8220 2006-04-11T05:13:09 Fix space-tab problem. From Jim Meyering.
Paul Eggert 8335a4d6 2006-04-10T06:43:33 Merge regex changes from libc, removing some of our POSIX-conformance changes that were rejected and redoing them in a less-intrusive way. * lib/regcomp.c (re_compile_internal, init_dfa): Length arg is now size_t, not Idx. All uses changed. (peek_token): Forward decl now says internal_function. (__re_error_msgid, __re_error_msgid_idx): Now static rather than extern with attribute_hidden. (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn. For some reason libc prefers K&R style defns for external functions. (regerror) [!defined _LIBC]: Likewise. (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp): (seek_collating_symbol_entry, lookup_collation_sequence_value): (build_range_exp, build_collating_symbol): Use K&R-style defn. (re_compile_fastmap): Use '\0' to memset, not 0. (utf8_sb_map): Make the calculations more obvious. (init_dfa, parse_bracket_exp, build_charclass_op): Call calloc and cast result, as glibc does. (init_word_char, fetch_token, peek_token, peek_token_bracket): (build_range_exp, build_collating_symbol): Now internal functions. * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers. * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on _REGEX_SOURCE any more; depend on _GNU_SOURCE instead. Don't depend on VMS; depend on __VMS instead, for POSIX namespace cleanness. (regoff_t): Define to ssize_t, not long int. Remove the REG_ macros named below. Instead, make the old names (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if __USE_GNU_REGEX. (REG_BACKSLASH_ESCAPE_IN_LISTS): (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS): (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS): (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE): (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT): (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS): (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES): (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING): (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD): (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE): (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS): (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK): (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP): (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON): (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC): (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED): (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED): (REG_NREGS): Remove. All uses replaced by the old RE_* names. (RE_BACKSLASH_ESCAPE_IN_LISTS): (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS): (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS): (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE): (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT): (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS): (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES): (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING): (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD): (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE): (RE_CONTEXT_INVALID_DUP, RE_NO_SUB): Don't bother having these macros be independent of each others' values, since they no longer exist in the POSIX name space. Rename the following member names back to their old names, unless !__USE_GNU_REGEX. All uses changed back. (buffer): Renamed from re_buffer. (allocated): Renamed from re_allocated. (used): Renamed from re_used. (syntax): Renamed from re_syntax. (fastmap): Renamed from re_fastmap. (translate): Renamed from re_translate. (can_be_null): Renamed from re_can_be_null. (regs_allocated): Renamed from re_regs_allocated. (fastmap_accurate): Renamed from re_fastmap_accurate. (no_sub): Renamed from re_no_sub. (not_bol): Renamed from re_not_bol. (not_eol): Renamed from re_not_eol. (newline_anchor): Renamed from re_newline_anchor. (num_regs): Renamed from rm_num_regs. (start): Renamed from rm_start. (end): Renamed from rm_end. (free_state): Move up a bit. * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]: #define to be empty. (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2 when that is what is intended. (SBC_MAX): Define to UCHAR_MAX + 1, not 256. (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed. (MAX): New macro. (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove. All uses changed back to re_malloc, etc. It's now the caller's responsibility to check for overflow; all callers changed. (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc): (re_x2nrealloc): Remove. (free_state): Remove decl. * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2): (re_set_registers, re_exec): Use K&R-style defn. 2006-01-31 Roland McGrath <roland@redhat.com> * lib/regcomp.c (calc_eclosure_iter): Remove dead variables. Reported by Mike Frysinger <vapier@gentoo.org>. 2006-01-15 Andreas Jaeger <aj@suse.de> [BZ #1950] * lib/regex_internal.c (re_string_reconstruct): Adjust for build_wcs_upper_buffer change. (build_wcs_upper_buffer): Change return type. 2005-12-10 Ulrich Drepper <drepper@redhat.com> * lib/regex_internal.h: Include <stdint.h> if available. 2005-12-06 Paolo Bonzini <bonzini@gnu.org> * lib/regex_internal.h (SIZE_MAX): Provide a default definition. 2005-10-14 Ulrich Drepper <drepper@redhat.com> * lib/regcomp.c: Adjust for changed secondary hash function. 2005-09-30 Ulrich Drepper <drepper@redhat.com> * lib/regex.h: Pretty printing. Clean up namespace a bit. 2005-09-30 Jakub Jelinek <jakub@redhat.com> * lib/regexec.c (update_cur_sifted_state, check_arrival, check_arrival_add_next_nodes): Avoid using uninitialized variable. 2005-09-06 Paul Eggert <eggert@cs.ucla.edu> Ulrich Drepper <drepper@redhat.com> [BZ #1302] * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses changed. (bitset_word_t): Renamed from bitset_word. All uses changed. 2005-09-22 Ulrich Drepper <drepper@redhat.com> [BZ #281] * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *. * lib/regcomp.c: Remove unnecessary uses of unsigned RE_TRANSLATE_TYPE. * lib/regex_internal.h: Likewise. * lib/regex_internal.c: Likewise. * lib/regexec.c: Likewise. Based on a patch by Stepan Kasal <kasal@ucw.cz>. 2005-09-07 Ulrich Drepper <drepper@redhat.com> * lib/regexec.c (find_recover_state): Remove unnecessary initialization. (transit_state_bkref): Make DFA a const pointer. (get_subexp): Likewise. (check_arrival): Likewise. (update_cur_sifted_state): Likewise. (re_search_internal): Likewise. (prune_impossible_nodes): Likewise. (acquire_init_state_context): Likewise. (proceed_next_node): Likewise. (set_regs): Likewise. (free_fail_stack_return): Likewise. (check_arrival_expand_ecl): Mark DFA parameter as const. (check_arrival_expand_ecl_sub): Likewise. (check_subexp_limits): Likewise. (sub_epsilon_src_nodes): Likewise. (add_epsilon_src_nodes): Likewise. (merge_state_array): Likewise. (update_regs): Likewise. (build_trtable): Likewise. (sift_states_backward): Mark MCTX parameter as const. (build_sifted_states): Likewise. (update_cur_sifted_state): Likewise. (sift_states_mkref): Likewise. (check_arrival_expand_ecl): Mark eclosure as const. (check_dst_limits_calc_pos_1): Likewise. * lib/regex_internal.h (re_match_context_t): Make dfa a const pointer. 2005-09-06 Ulrich Drepper <drepper@redhat.com> * lib/regexec.c (merge_state_with_log): Define dfa as const pointer. (transit_state_sb): Likewise. (transit_state_mb): Likewise. (sift_states_iter_mb): Likewise. (check_arrival_add_next_nodes): Likewise. (check_node_accept_bytes): Change first parameter to pointer-to-const. [_LIBC] (re_search_2_stub): Use mempcpy. * lib/regex_internal.c (re_string_reconstruct): Avoid calling mbrtowc for very simple UTF-8 case. * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg a pointer-to-const. (re_acquire_state_context): Likewise. * lib/regex_internal.h: Adjust prototypes. * lib/regex.c: Prevent using C++ compilers. * lib/regex_internal.c (re_acquire_state): Minor code rearrangement. (re_acquire_state_context): Likewise.
Bruno Haible 13fddfd6 2006-03-29T13:08:31 Fix for OpenBSD.
Eric Blake e0bfabaf 2006-03-25T04:36:14 * time_r.c (copy_string_result): Remove, as it is no longer used.
Simon Josefsson 8197f4df 2006-03-24T15:48:02 Doc fix.
Simon Josefsson cb3daf31 2006-03-24T14:08:19 2006-03-24 Simon Josefsson <jas@extundo.com> * base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>, including some doc fixes. (base64_encode_alloc): Fix +1 bug on allocation failures.
Simon Josefsson e12ea14e 2006-03-24T12:36:06 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * base64.c (base64_encode): Do not read past end of array with unsanitized input on systems with CHAR_BIT > 8.
Simon Josefsson 9f77158b 2006-03-24T11:02:19 Line wrap.
Karl Berry 183b57c6 2006-03-22T22:08:04 sync from coreutils
Paul Eggert c0174c2f 2006-03-17T07:26:42 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Typedef to long int, not to off_, as POSIX will likely change in that direction. * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code no longer needs it. Instead, check that regoff_t is as least as wide as ptrdiff_t. Don't define _REGEX_WIDE_OFFSETS unless using the included regex, so that our regex.h stays compatible with the installed regex. This is helpful for installers who configure --without-included-regex. Problem reported by Emanuele Giaquinta.
Sergey Poznyakoff 32d6c308 2006-03-13T09:52:22 Update
Sergey Poznyakoff 59737d83 2006-03-13T09:52:05 (argp_default_options): Consistently begin help messages with a lowercase letter.
Sergey Poznyakoff f84215fa 2006-03-13T09:51:53 (validate_uparams): Fix typo
Paul Eggert 58afb656 2006-03-12T07:58:12 * time_r.h (asctime_r, ctime_r): Remove. These functions can overrun buffers and shouldn't be used (much as gets shouldn't be used). * time_r.c (asctime_r, ctime_r): Likewise.
Simon Josefsson e919c87e 2006-03-08T13:40:30 Fix gc-random module.
Paul Eggert 15a8db51 2006-03-08T01:37:15 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume the unistd module. * lib/getlogin_r.c: Likewise. * lib/getlogin_r.h: Likewise. * lib/glob.c: Likewise. * lib/pagealign_alloc.c: Likewise. * lib/unistd_.h: Remove; no longer needed. * modules/c-stack (Depends-on): Add unistd. * modules/getlogin_r: Likewise. * modules/glob: Likewise. * modules/pagealign_alloc: Likewise. * modules/unistd (Files): Remove lib/unistd_.h. (EXTRA_DIST): Remove. (unistd.h): Create using 'echo' rather than 'cp', so that we don't need unistd_.h. (MOSTLYCLEANFILES): Remove unistd.h-t.
Simon Josefsson 266f4849 2006-03-07T13:30:51 Fix use of unistd.h in getopt through a new unistd module.
Simon Josefsson 216c04af 2006-03-07T13:17:10 Split off gc-random from gc, and only warn on missing devices.
Simon Josefsson e1eaf8c3 2006-03-03T13:36:06 Indent.
Simon Josefsson 50129386 2006-03-01T08:44:25 *** empty log message ***
Simon Josefsson 83f8d91f 2006-03-01T08:44:05 Fix typo, from Stepan Kasal <kasal@ucw.cz>.
Simon Josefsson 330cb3c3 2006-02-27T11:26:13 * base64.h: Indent #define's. From Jim Meyering <jim@meyering.net>.
Jim Meyering de2690fc 2006-02-27T08:43:30 *** empty log message ***
Jim Meyering 4074d4d3 2006-02-27T06:45:15 *** empty log message ***
Jim Meyering 31589505 2006-02-27T06:37:59 undo last change -- this file is sync'd from gettext
Paul Eggert ca2616b8 2006-02-25T07:57:46 * glob.c: Say "invalid" rather than "illegal" in comments.
Paul Eggert 56f043ff 2006-02-25T07:57:37 illegal -> invalid
Jim Meyering 5c47417b 2006-02-24T10:10:45 *** empty log message ***
Jim Meyering c534ec87 2006-02-24T10:10:13 *** empty log message ***
Jim Meyering da326536 2006-02-24T10:09:59 Normalize inclusion of `config.h'.
Paul Eggert 7e69cc2d 2006-02-21T06:40:34 * getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where AT_FDCWD exceeds INT_MAX. * openat.h (AT_FDCWD): Likewise.
Paul Eggert 28fe652e 2006-02-14T23:00:23 Sync from coreutils. * modules/lstat (Depends-on): Don't depend on xalloc. (License): Change from GPL to LGPL, since this is now simply a replacement for a libc function. Eliminate the unwelcome (albeit unlikely) possibility of xmalloc failure on deficient systems, and simplify gnulib lgpl dependencies. * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the xmalloc/lstat combination. Based on a patch from Bruno Haible. * lib/xalloc-die.c: Remove unused definition of N_. * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses of that variable, to accommodate the rare case in which getmntent is available in none of the libraries checked. This happens at least on FreeBSD 5.0.
Sergey Poznyakoff 0aee6c18 2006-02-13T13:37:42 Update
Sergey Poznyakoff 9cd9c7d8 2006-02-13T13:25:58 Restore another bugfix lost on 2005-12-12
Paul Eggert c0005fd5 2006-02-13T08:09:15 Add 2006 to copyright year.
Paul Eggert f33c2ee2 2006-02-08T00:04:23 * closeout.c (close_stdout): Don't assume 'bool' converts nonzero ints to 0 or 1, as this isn't true for the stdbool.h substitute.
Sergey Poznyakoff 37275bb2 2006-02-07T13:36:14 Update
Sergey Poznyakoff 4a44dc21 2006-02-07T13:35:29 Restore changes accidentally lost during the "autoupdate" on 2005-12-12.
Paul Eggert 3585608d 2006-01-27T18:40:27 * fnmatch.c (L_): Renamed from L, to work around a bug in Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>. All uses changed.
Simon Josefsson 955a407e 2006-01-27T12:50:41 Mingw32 fixes for getaddrinfo.
Paul Eggert 2a9ab9df 2006-01-26T22:12:26 * 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.
Bruno Haible 0275c710 2006-01-26T13:31:49 Treat all non-gcc compilers the same.
Jim Meyering 2096a449 2006-01-25T17:31:46 Remove stray conflict marker.
Jim Meyering fc264642 2006-01-25T16:45:59 *** empty log message ***
Jim Meyering 9d5fcc62 2006-01-25T16:45:04 Sync from the stable (b5) branch of coreutils: (fts_children): Don't let close() clobber errno from failed fchdir(). (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_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_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.
Sergey Poznyakoff 5f15ae50 2006-01-25T16:22:22 Update
Sergey Poznyakoff b5b54bf0 2006-01-25T16:17:36 Bugfix (stray #)
Bruno Haible a3805d3a 2006-01-25T13:56:34 Oops, wrong changelog entry.
Bruno Haible 68800be0 2006-01-25T13:55:43 Avoid excessive warnings with IRIX cc.
Jim Meyering 25aaf122 2006-01-25T08:03:18 *** empty log message ***
Jim Meyering 03196fc5 2006-01-25T08:03:13 Remove more useless parentheses.
Jim Meyering fea8ba48 2006-01-25T07:34:41 *** empty log message ***
Jim Meyering b5adbb08 2006-01-25T07:34:10 Remove more useless parentheses.
Bruno Haible 6b23e624 2006-01-24T22:00:13 Fix a bug occurring with HP-UX aCC compiler.
Bruno Haible b4f05160 2006-01-24T21:44:37 Work around HP-UX and AIX C compiler bugs with built-in _Bool.
Jim Meyering 036fd6f1 2006-01-24T12:53:45 *** empty log message ***
Jim Meyering 003302be 2006-01-24T12:53:13 Remove useless parentheses in uses of cpp `defined'.
Simon Josefsson aeae903c 2006-01-24T11:57:26 * socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by Bruno.
Paul Eggert 673458cf 2006-01-24T07:40:58 Work around porting bugs reported by Dieter in <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>. * lib/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. * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype. (__strndup): Revert to K&R-style function dfns, the glibc style. * lib/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. * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
Bruno Haible 376384bd 2006-01-23T15:01:57 Fix an incorrect estimation of the sprintf result size.
Paul Eggert b35c0cb9 2006-01-22T08:46:02 * quotearg.c (quotearg_buffer_restyled): Add "default: break;" to pacify gcc -Wswitch-default.
Sergey Poznyakoff ae6b9bb5 2006-01-21T19:13:07 Update
Sergey Poznyakoff 9fe27f56 2006-01-21T19:07:06 (__argp_basename): Removed definition. Was a typo. (__argp_base_name): Provide macro definition or extern declaration depending on the configuration