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++.
Paul Eggert [Mon, 24 Apr 2006 07:40:00 +0000 (07:40 +0000)]
Don't assume that 'exit' is declared for us.
Don't assume that you can exit with status -1.
(import from gnulib)
Jim Meyering [Sun, 23 Apr 2006 21:48:27 +0000 (21:48 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Apr 2006 21:47:00 +0000 (21:47 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Apr 2006 21:46:54 +0000 (21:46 +0000)]
(Which files are listed): Describe new option: --group-directories-first.
Jim Meyering [Sun, 23 Apr 2006 21:38:32 +0000 (21:38 +0000)]
[New features]: Mention ls's new option, --group-directories-first
Jim Meyering [Sun, 23 Apr 2006 21:35:04 +0000 (21:35 +0000)]
(sort_type): Rearrange to use as an array index when
choosing sort function; added new sort_numtypes member for
compile-time check.
(time_type): Add new time_numtypes member for compile-time check.
(directories_first): New global variable.
(GROUP_DIRECTORIES_FIRST_OPTION): New enum.
(long_options): Add --directories-first.
(main): Support new option.
(is_directory): New function.
(extract_dirs_from_files): Use it.
(DIRFIRST_CHECK, DEFINE_SORT_FUNCTIONS)
(LIST_SORTFUNCTION_VARIANTS): New macros.
(sort_functions): New global variable.
(sort_files): Use it.
(usage): Document new option.
Paul Eggert [Wed, 19 Apr 2006 06:28:11 +0000 (06:28 +0000)]
Change 'shred' to not use alloca.
Paul Eggert [Wed, 19 Apr 2006 06:27:43 +0000 (06:27 +0000)]
(fillrand): The assertion was way too weak, due to
what must be a typo. Strengthen it to its intended value.
(dopass): Don't use alloca; it's not worth the aggravation here,
since it's used only to get a page-aligned buffer, and page
alignment doesn't buy us much here. I'm suspicious that alloca
causes problems on some hosts, due to a recent bug report by Adam
Waltman.
Jim Meyering [Tue, 18 Apr 2006 14:59:27 +0000 (14:59 +0000)]
*** empty log message ***
Jim Meyering [Tue, 18 Apr 2006 14:59:22 +0000 (14:59 +0000)]
Add new programs, base64, sha224sum, sha256sum, sha384sum, sha512sum.
Paul Eggert [Mon, 17 Apr 2006 23:24:49 +0000 (23:24 +0000)]
Document filemode changes.
Paul Eggert [Mon, 17 Apr 2006 23:23:43 +0000 (23:23 +0000)]
(human_access): Use (new) filemodestring rather than
(old) mode_string, so that we get more file types right, at least
in theory. Adjust to filemode changes.
Paul Eggert [Mon, 17 Apr 2006 23:23:11 +0000 (23:23 +0000)]
(HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.
(print_long_format): Use (new) filemodestring rather than
(old) mode_string, so that we get more file types right, at least
in theory. Adjust to filemode changes.
Paul Eggert [Mon, 17 Apr 2006 23:22:51 +0000 (23:22 +0000)]
(describe_change): Adjust to filemode changes.
Paul Eggert [Mon, 17 Apr 2006 23:22:16 +0000 (23:22 +0000)]
(gl_FILEMODE): Check for strmode declaration.
Paul Eggert [Mon, 17 Apr 2006 23:22:01 +0000 (23:22 +0000)]
Don't undef S_ISDOOR, since it's never buggy.
(S_ISDOOR): Don't bother with S_IFDOOR, since that code is never needed.
(S_ISPORT, S_ISWHT): New macros, if not already defined.
Paul Eggert [Mon, 17 Apr 2006 23:21:30 +0000 (23:21 +0000)]
(HAVE_DECL_STRMODE): Include <string.h> for strmode.
(strmode): Renamed from mode_string.
(filemodestring): New decl.
Paul Eggert [Mon, 17 Apr 2006 23:21:14 +0000 (23:21 +0000)]
Include "filemode.h" first, to test the interface.
Assume that filemode.h includes sys/types.h and sys/stat.h.
(HAVE_ST_DM_MODE): New macro, moved here from ls.c.
(ftypelet): Reorder to put common cases first, for efficiency.
Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
to do 'M'.
(strmode): Renamed from mode_string, and now stores 12 bytes instead
of 10, for compatibility with FreeBSD. All callers changed.
(filemodestring): Now stores 12 bytes instead of 10, and sets file types
that can't be deduced solely from st_mode. First arg is now a const
pointer.