Jim Meyering [Sat, 27 May 2006 13:43:07 +0000 (13:43 +0000)]
(check-texinfo): Use literal `{' only in brackets, i.e., [{] or [}],
to avoid triggering an error from Solaris 2.6's grep.
Jim Meyering [Sat, 27 May 2006 13:32:10 +0000 (13:32 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 May 2006 13:32:04 +0000 (13:32 +0000)]
Use `$(EGREP)' instead of `grep -E'.
Paul Eggert [Thu, 25 May 2006 21:57:22 +0000 (21:57 +0000)]
(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>.
Paul Eggert [Thu, 25 May 2006 16:48:05 +0000 (16:48 +0000)]
Remove mention of --seed.
Paul Eggert [Thu, 25 May 2006 16:47:43 +0000 (16:47 +0000)]
(usage): Remove mention of --seed.
Jim Meyering [Wed, 24 May 2006 07:35:32 +0000 (07:35 +0000)]
*** empty log message ***
Jim Meyering [Wed, 24 May 2006 07:35:28 +0000 (07:35 +0000)]
Require autoconf-2.59d, for its fixed version
of AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
Paul Eggert [Tue, 23 May 2006 07:48:31 +0000 (07:48 +0000)]
Fix misspelling.
Paul Eggert [Tue, 23 May 2006 07:48:12 +0000 (07:48 +0000)]
Note problem with string.h.
Paul Eggert [Tue, 23 May 2006 07:47:51 +0000 (07:47 +0000)]
filemode.c: Don't include <string.h>.
Paul Eggert [Tue, 23 May 2006 07:47:32 +0000 (07:47 +0000)]
Don't include <string.h>; this include was
inadvertantly put into the previous patch.
Paul Eggert [Mon, 22 May 2006 20:11:45 +0000 (20:11 +0000)]
* filemode.c (setst): Remove.
(strmode): Rewrite to avoid setst. This makes the code shorter,
(arguably) clearer, and the generated code is a bit smaller on my
Debian GNU/Linux stable x86 host.
Paul Eggert [Mon, 22 May 2006 18:01:48 +0000 (18:01 +0000)]
Document the internals better. Most of this change
was written by Bruno Haible.
Jim Meyering [Sun, 21 May 2006 22:04:34 +0000 (22:04 +0000)]
*** empty log message ***
Jim Meyering [Sat, 20 May 2006 22:18:20 +0000 (22:18 +0000)]
*** empty log message ***
Jim Meyering [Sat, 20 May 2006 22:18:16 +0000 (22:18 +0000)]
(fts_open): Fail with EINVAL if a caller violates this rule:
Either FTS_LOGICAL or FTS_PHYSICAL must be provided to the
fts_open() function.
Jim Meyering [Sat, 20 May 2006 19:00:46 +0000 (19:00 +0000)]
*** empty log message ***
Jim Meyering [Sat, 20 May 2006 17:27:07 +0000 (17:27 +0000)]
(main): Use FTS_PHYSICAL here, too.
Jim Meyering [Sat, 20 May 2006 07:20:03 +0000 (07:20 +0000)]
*** empty log message ***
Jim Meyering [Sat, 20 May 2006 07:19:53 +0000 (07:19 +0000)]
(main): Rename local, s/symlink_deref_bit/symlink_deref_bits/
and arrange for -D to set fts' FTS_PHYSICAL bit as well as
FTS_COMFOLLOW. Spotted by Justin Pryzby.
Jim Meyering [Fri, 19 May 2006 22:30:55 +0000 (22:30 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 May 2006 22:30:27 +0000 (22:30 +0000)]
Merge changes from automake, retaining the ""--to...
kludge to placate overzealous `make distcheck' check.
Paul Eggert [Fri, 19 May 2006 18:03:25 +0000 (18:03 +0000)]
Sync nanosleep from gnulib.
Jim Meyering [Fri, 19 May 2006 12:36:36 +0000 (12:36 +0000)]
*** empty log message ***
Jim Meyering [Fri, 19 May 2006 12:36:18 +0000 (12:36 +0000)]
(main): Don't let -D, -L, or -P turn off the internal
FTS_TIGHT_CYCLE_CHECK directory traversal option.
Reported by Justin Pryzby in http://bugs.debian.org/367691
Jim Meyering [Tue, 16 May 2006 17:27:04 +0000 (17:27 +0000)]
mention cp -p vs. no-/proc fix
Jim Meyering [Mon, 15 May 2006 20:19:02 +0000 (20:19 +0000)]
(usage): Correct description of -a: s/-dpR/-dpPR/. From Tomas Pospisek.
Jim Meyering [Mon, 15 May 2006 20:18:49 +0000 (20:18 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 May 2006 13:28:28 +0000 (13:28 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 May 2006 13:28:24 +0000 (13:28 +0000)]
(xfts_open): Always use FTS_CWDFD.
Jim Meyering [Mon, 15 May 2006 10:59:15 +0000 (10:59 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 May 2006 10:59:10 +0000 (10:59 +0000)]
Avoid the expense of an fstat, when possible.
(O_NOFOLLOW, STREQ): Define.
(diropen_fd): Remove function. Merge it into sole caller...
(diropen): ...here. Use O_NOFOLLOW when appropriate.
(fts_safe_changedir): Call fstat for dev/inode check, only if the
previous open/openat call may have opened the wrong directory.
Jim Meyering [Mon, 15 May 2006 10:00:30 +0000 (10:00 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 May 2006 10:00:16 +0000 (10:00 +0000)]
Restore the parts of fts that were removed on 2006-01-17, so that
it's easier for legacy applications designed for the version
of fts in glibc or BSD to convert to this more robust version.
Add a new mode, FTS_CWDFD, by which to enable the improved
(openat- based -- aka no-chdir) semantics.
* fts_.h (FTS_CWDFD): Define. Callers must use this fts_open
option to enable the more robust behavior.
(FTS_OPTIONMASK): Widen accordingly.
* fts.c: Restore removed code, reverting the default behavior.
Paul Eggert [Mon, 15 May 2006 03:17:08 +0000 (03:17 +0000)]
(AC_HEADER_STDBOOL): Fix overly-picky
test for C99 conformance; (bool) 0.5 is an integer constant
expression, but (bool) -0.5 is not. Problem reported by Fedor
Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
Jim Meyering [Sat, 13 May 2006 08:41:37 +0000 (08:41 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 May 2006 08:41:06 +0000 (08:41 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 May 2006 08:41:02 +0000 (08:41 +0000)]
Test two more cases.
Jim Meyering [Fri, 12 May 2006 07:18:08 +0000 (07:18 +0000)]
update from gnulib
Jim Meyering [Thu, 11 May 2006 19:44:47 +0000 (19:44 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 May 2006 19:44:42 +0000 (19:44 +0000)]
(sha1_buffer): Correct comment: s/MD5/SHA1/. From James Lemley.
Jim Meyering [Thu, 11 May 2006 08:58:23 +0000 (08:58 +0000)]
.
Jim Meyering [Thu, 11 May 2006 08:57:45 +0000 (08:57 +0000)]
Mention that:
mv -T DIR EMPTY_DIR no longer fails unconditionally
Jim Meyering [Thu, 11 May 2006 08:57:32 +0000 (08:57 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 May 2006 08:55:08 +0000 (08:55 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 May 2006 08:55:04 +0000 (08:55 +0000)]
mv -T DIR EMPTY_DIR no longer fails
(copy_internal): Don't manually prohibit a move where
the destination is an existing directory. Sometimes doing that is
valid. Let the rename system call enforce the rules. That is
allowed only when the source is a directory and the destination
directory (to be replaced) is empty. Reported by Eric Blake.
Jim Meyering [Thu, 11 May 2006 08:54:30 +0000 (08:54 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 May 2006 08:54:23 +0000 (08:54 +0000)]
(TESTS): Add no-target-dir.
Jim Meyering [Thu, 11 May 2006 08:18:34 +0000 (08:18 +0000)]
ensure that mv did what it's supposed to
Jim Meyering [Thu, 11 May 2006 07:53:25 +0000 (07:53 +0000)]
.
Jim Meyering [Thu, 11 May 2006 07:51:17 +0000 (07:51 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 May 2006 07:51:05 +0000 (07:51 +0000)]
(TESTS): Add atomic.
Jim Meyering [Thu, 11 May 2006 07:50:55 +0000 (07:50 +0000)]
New file/test for yesterday's fix.
Jim Meyering [Thu, 11 May 2006 07:33:10 +0000 (07:33 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 May 2006 07:33:00 +0000 (07:33 +0000)]
(copy_internal): Don't explicitly unlink the destination
when moving a symlink into the place of an existing non-directory.
Reported by Joshua Hudson.
Jim Meyering [Thu, 11 May 2006 07:29:53 +0000 (07:29 +0000)]
Avoid harmless `ambiguous redirect' diagnostic.
Jim Meyering [Wed, 10 May 2006 13:39:30 +0000 (13:39 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 May 2006 07:22:19 +0000 (07:22 +0000)]
update from gnulib
Jim Meyering [Sun, 7 May 2006 17:46:57 +0000 (17:46 +0000)]
(patch-check): Correct reversed sense of `test -s' test.
Work around the fact that patch always outputs `patching file ...'.
Jim Meyering [Sun, 7 May 2006 17:25:25 +0000 (17:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 May 2006 17:21:01 +0000 (17:21 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 May 2006 17:20:49 +0000 (17:20 +0000)]
Adjust to reflect new offsets.
Jim Meyering [Sun, 7 May 2006 15:53:25 +0000 (15:53 +0000)]
mention the df fix of 2006-01-24
Jim Meyering [Sun, 7 May 2006 15:37:38 +0000 (15:37 +0000)]
mention the df improvement from 2006-01-24
Jim Meyering [Sat, 6 May 2006 21:09:35 +0000 (21:09 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 May 2006 18:56:46 +0000 (18:56 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 May 2006 16:03:20 +0000 (16:03 +0000)]
mention the shred-segfault fix
Jim Meyering [Sat, 6 May 2006 16:01:39 +0000 (16:01 +0000)]
remove stray stat-related line
Jim Meyering [Sat, 6 May 2006 15:52:56 +0000 (15:52 +0000)]
.
Jim Meyering [Sat, 6 May 2006 15:44:25 +0000 (15:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 May 2006 15:44:19 +0000 (15:44 +0000)]
Expand to test broken links encountered
implicitly, favoring Solaris 9 and OpenBSD 3.4 behavior.
Jim Meyering [Sat, 6 May 2006 15:44:01 +0000 (15:44 +0000)]
Expand to test inode from readdir case.
Jim Meyering [Sat, 6 May 2006 15:29:49 +0000 (15:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 May 2006 15:29:44 +0000 (15:29 +0000)]
(TESTS): Add stat-vs-dirent.
Jim Meyering [Sat, 6 May 2006 15:29:20 +0000 (15:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 May 2006 15:27:38 +0000 (15:27 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 May 2006 14:23:38 +0000 (14:23 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 May 2006 14:23:31 +0000 (14:23 +0000)]
Work even on case-insensitive file system.
Jim Meyering [Sat, 6 May 2006 14:17:31 +0000 (14:17 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 May 2006 14:17:21 +0000 (14:17 +0000)]
(gl_GETADDRINFO): Fix caching error.
Jim Meyering [Fri, 5 May 2006 18:51:44 +0000 (18:51 +0000)]
update from gnulib
Jim Meyering [Thu, 4 May 2006 12:55:54 +0000 (12:55 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 May 2006 12:55:08 +0000 (12:55 +0000)]
(Examples of date): Give example of @seconds.
Jim Meyering [Thu, 4 May 2006 10:33:39 +0000 (10:33 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 May 2006 10:02:54 +0000 (10:02 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 May 2006 10:01:43 +0000 (10:01 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 May 2006 10:00:40 +0000 (10:00 +0000)]
mention pwd fix
Paul Eggert [Wed, 3 May 2006 23:10:04 +0000 (23:10 +0000)]
(head invocation, tail invocation, sort invocation):
Give advice about porting to hosts that support only obsolete syntax.
Jim Meyering [Wed, 3 May 2006 10:13:07 +0000 (10:13 +0000)]
Include "same-inode.h".
Jim Meyering [Wed, 3 May 2006 10:11:25 +0000 (10:11 +0000)]
.
Jim Meyering [Wed, 3 May 2006 10:11:05 +0000 (10:11 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 May 2006 10:10:00 +0000 (10:10 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 May 2006 10:07:36 +0000 (10:07 +0000)]
(DEFINE_SORT_FUNCTIONS, LIST_SORTFUNCTION_VARIANTS):
Use better macro parameter names: s/basename/key_name/,
s/basefunc/key_cmp_func. Fix typo in comment.
Jim Meyering [Wed, 3 May 2006 10:03:58 +0000 (10:03 +0000)]
(main): On systems with d_type, directories_first only
implies format_needs_type, not format_needs_stat.
Jim Meyering [Wed, 3 May 2006 09:36:03 +0000 (09:36 +0000)]
(xstrcoll_df_version, rev_xstrcoll_df_version): Add space after comma
in arg list, from Eric Blake.
Paul Eggert [Tue, 25 Apr 2006 10:29:47 +0000 (10:29 +0000)]
(get_date): When adding relative date, start with the
initial time, not with the result of the first mktime call.
Paul Eggert [Tue, 25 Apr 2006 10:29:10 +0000 (10:29 +0000)]
(relative-3): New test, derived from a bug report by John Thomas McDole.
Paul Eggert [Mon, 24 Apr 2006 17:51:56 +0000 (17:51 +0000)]
Remove typo in previous checkin.
Paul Eggert [Mon, 24 Apr 2006 17:50:24 +0000 (17:50 +0000)]
* unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
to define main with arguments, for C++. Reported by Eric Blake.
* c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
Prefer 'int main ()' to 'int main (void)', for C++.
* getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
* fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
for 'main', for C99 and C++.