summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2006-01-25Remove useless parentheses in cpp directive.Jim Meyering
2006-01-24Import from gnulib.Paul Eggert
2006-01-23*** empty log message ***Jim Meyering
2006-01-23Remove unused definition of N_.Jim Meyering
2006-01-22(quotearg_buffer_restyled): Add "default: break;"Paul Eggert
to pacify gcc -Wswitch-default.
2006-01-21.Jim Meyering
2006-01-17(openat_needs_fchdir): New function.Jim Meyering
2006-01-17*** empty log message ***Jim Meyering
2006-01-17(openat_needs_fchdir): Declare it.Jim Meyering
2006-01-17*** empty log message ***Jim Meyering
2006-01-17[struct FTS] (fts_cwd_fd): New member.Jim Meyering
[struct FTS] (fts_rft): Remove now-unused member. [struct FTS] (fts_cycle.state): Improve comment.
2006-01-17Rewrite 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-12.Jim Meyering
2006-01-12*** empty log message ***Jim Meyering
2006-01-12Remove useless parentheses in cpp directives, so thatJim Meyering
this file passes coreutils' `make syntax-check' tests.
2006-01-12Import from gnulib.Paul Eggert
2006-01-12Add stdint_.h.Paul Eggert
2006-01-12Adjust to md5 changes in gnulib, and make sha1 etc. more consistentPaul Eggert
with md5.
2006-01-12(struct sha512_ctx): Use a word buffer, not a byte buffer, so that wePaul Eggert
don't need to worry about alignment.
2006-01-12(struct sha256_ctx): Use a word buffer, not a byte buffer, so that wePaul 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-12Fix commentary to match md5 better. Adjust to .h file changes.Paul Eggert
2006-01-12(__attribute__): Remove; unused.Paul Eggert
2006-01-12Fix 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-12Add 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(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*** empty log message ***Jim Meyering
2006-01-11(fts_open): Put new (2006-01-04) maxarglen declaration and uses in theirJim 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
2006-01-11(fchmodat, fchownat): Declare.Jim Meyering
(chmodat, lchmodat): Define convenience functions. (chownat, lchownat): Likewise.
2006-01-11(fchownat): New function.Jim Meyering
2006-01-11(fchmodat): New file and function.Jim Meyering
2006-01-11*** empty log message ***Jim Meyering
2006-01-11(OP): Remove useless space-before-TAB.Jim Meyering
2006-01-10Sync from gnulib.Paul Eggert
2006-01-10Update copyright year.Paul Eggert
2006-01-10Remove stray "lib/"s in previous change.Paul Eggert
2006-01-10Sync from gnulib.Paul Eggert
2006-01-10*** empty log message ***Jim Meyering
2006-01-10Avoid the double-free (first in fts_read, second in fts_close) thatJim Meyering
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.
2006-01-10*** empty log message ***Jim Meyering
2006-01-09fix typo in commentJim Meyering
2006-01-06*** empty log message ***Jim Meyering
2006-01-06(COPYRIGHT_YEAR): Update to 2006.Jim Meyering