Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-01-17 | Rewrite fts.c not to change the current working directory, | Jim Meyering | |
by using openat, fstatat, fdopendir, etc.. [! _LIBC]: Include "openat.h" and "unistd--.h". (HAVE_OPENAT_SUPPORT): Define. [_LIBC] (fchdir): Don't undef or define; no longer used. (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir. Now, this `function' always succeeds, and consumes its file descriptor parameter -- so callers must not close such FDs. Update callers. (diropen_fd, opendirat, cwd_advance_fd): New functions. (diropen): Add parameter, SP. Adjust all callers. Implement using diropen_fd, rather than open. (fts_open): Initialize new member, fts_cwd_fd. Remove fts_rft-setting code. (fts_close): Close fts_cwd_fd, if necessary. (__opendir2): Define in terms of opendir or opendirat, depending on whether the FST_NOCHDIR flag is set. (fts_build): Since fts_safe_changedir consumes its FD, and since this code must do `closedir(dirp)', dup the dirfd(dirp) argument, and close the dup'd file descriptor upon failure. (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat. (fts_safe_changedir): Tweak semantics to reflect that this function now calls cwd_advance_fd and hence consumes its FD argument. | |||
2006-01-17 | (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as it's not portable | Paul Eggert | |
and it doesn't work with cross-compiles. Fix missing-$ typo in 'test "gl_cv_ignore_unused_libraries" ...' that prevented -zignore from being used with Sun's C compiler. | |||
2006-01-13 | *** empty log message *** | Jim Meyering | |
2006-01-13 | (SUBDIRS): Add comments discouraging the | Jim Meyering | |
addition of new directories under tests/. | |||
2006-01-13 | *** empty log message *** | Jim Meyering | |
2006-01-13 | Redirect stdin to /dev/null. Otherwise, FreeBSD 5.0's getfacl would hang. | Jim Meyering | |
2006-01-13 | *** empty log message *** | Jim Meyering | |
2006-01-13 | (AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent) | Jim Meyering | |
unconditionally so that tests of $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses 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. | |||
2006-01-12 | *** empty log message *** | Jim Meyering | |
2006-01-12 | Adjust not to hard-code the expected | Jim Meyering | |
diagnostic corresponding to ELOOP. Solaris' diagnostic differs from that of Linux/libc. Reported by Paul Eggert. | |||
2006-01-12 | Create final file *after* the loop. | Jim Meyering | |
2006-01-12 | Create file at end of symlink chain. | Jim Meyering | |
2006-01-12 | skip the test on a system that can handle this many symlinks in a file name, | Jim Meyering | |
2006-01-12 | . | Jim Meyering | |
2006-01-12 | whoops. traps were commented out. | Jim Meyering | |
2006-01-12 | *** empty log message *** | Jim Meyering | |
2006-01-12 | Remove useless parentheses in cpp directives, so that | Jim Meyering | |
this file passes coreutils' `make syntax-check' tests. | |||
2006-01-12 | fix typo: s/stdint.h.m4/stdint.m4/ | Jim Meyering | |
2006-01-12 | from gnulib | Jim Meyering | |
2006-01-12 | *** empty log message *** | Jim Meyering | |
2006-01-12 | (TESTS): Add test. | Jim Meyering | |
2006-01-12 | New file, with a test for one of the | Jim Meyering | |
bugs fixed by yesterday's test.c changes. | |||
2006-01-12 | Import from gnulib. | Paul Eggert | |
2006-01-12 | Add stdint_.h. | Paul Eggert | |
2006-01-12 | Adjust to md5 changes in gnulib, and make sha1 etc. more consistent | Paul Eggert | |
with md5. | |||
2006-01-12 | (gl_PREREQ): Require gl_STDINT_H. | Paul Eggert | |
2006-01-12 | (struct sha512_ctx): Use a word buffer, not a byte buffer, so that we | Paul Eggert | |
don't need to worry about alignment. | |||
2006-01-12 | (struct sha256_ctx): Use a word buffer, not a byte buffer, so that we | Paul Eggert | |
don't need to worry about alignment. All uses changed. | |||
2006-01-12 | (struct sha1_ctx): Use a word buffer, not a byte buffer, | Paul Eggert | |
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-12 | Fix commentary to match md5 better. Adjust to .h file changes. | Paul Eggert | |
2006-01-12 | (__attribute__): Remove; unused. | Paul Eggert | |
2006-01-12 | Fix commentary typos. | Paul Eggert | |
(alignof, UNALIGNED_P): No need for a GCC-specific version. | |||
2006-01-12 | (BUILT_SOURCES, EXTRA_DIST, stdint.h, MOSTLYCLEANFILES): | Paul Eggert | |
Add gnulib snippet. | |||
2006-01-12 | Add stdint.h. | Paul Eggert | |
2006-01-11 | *** empty log message *** | Jim Meyering | |
2006-01-11 | *** empty log message *** | Jim Meyering | |
2006-01-11 | *** empty log message *** | Jim Meyering | |
2006-01-11 | *** empty log message *** | Jim Meyering | |
2006-01-11 | Test for today's fts.c bug fix. | Jim Meyering | |
2006-01-11 | (TESTS): Add long-sloop. | Jim Meyering | |
2006-01-11 | *** empty log message *** | Jim Meyering | |
2006-01-11 | (fts_stat): When following a symlink-to-directory, | Jim Meyering | |
don't interpret all 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. | |||
2006-01-11 | Mark Joerg Sonnenberger's change as tiny. | Jim Meyering | |
2006-01-11 | * src/test.c (test_syntax_error): Append a newline. | Paul Eggert | |
2006-01-11 | (test_syntax_error): Append a newline. All callers | Paul Eggert | |
changed, except for the ones that didn't already append a newline. | |||
2006-01-11 | *** empty log message *** | Jim Meyering | |
2006-01-11 | (fts_open): Put new (2006-01-04) maxarglen declaration and uses in their | Jim Meyering | |
own block, so pre-c99 compilers don't object. | |||
2006-01-11 | *** empty log message *** | Jim Meyering | |
2006-01-11 | [!_LIBC]: Include "fcntl--.h", to map open to open_safer. | Jim Meyering | |
2006-01-11 | *** empty log message *** | Jim Meyering | |