Jim Meyering [Mon, 20 Jan 2003 18:20:09 +0000 (18:20 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 18:19:50 +0000 (18:19 +0000)]
(bignum): New test to demonstrate that large
format widths no longer smash strftime's stack and cause infloop.
Jim Meyering [Mon, 20 Jan 2003 16:41:31 +0000 (16:41 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 16:41:19 +0000 (16:41 +0000)]
Include "path-concat.h".
Jim Meyering [Mon, 20 Jan 2003 16:38:41 +0000 (16:38 +0000)]
remove the temporary directory
Jim Meyering [Mon, 20 Jan 2003 16:31:28 +0000 (16:31 +0000)]
see if we can do it without rpl_ftw
Jim Meyering [Mon, 20 Jan 2003 16:30:59 +0000 (16:30 +0000)]
New file, from GNU libc.
Jim Meyering [Mon, 20 Jan 2003 16:30:49 +0000 (16:30 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 16:30:39 +0000 (16:30 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 16:29:27 +0000 (16:29 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 16:28:34 +0000 (16:28 +0000)]
(libfetish_a_SOURCES): Use ftw_.h here, too.
Jim Meyering [Mon, 20 Jan 2003 16:28:04 +0000 (16:28 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 16:27:35 +0000 (16:27 +0000)]
renamed to ftw_.h
Jim Meyering [Mon, 20 Jan 2003 16:27:35 +0000 (16:27 +0000)]
renamed from ftw.h
Jim Meyering [Mon, 20 Jan 2003 16:19:28 +0000 (16:19 +0000)]
define ftw to rpl_ftw
Jim Meyering [Mon, 20 Jan 2003 15:45:57 +0000 (15:45 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 15:45:53 +0000 (15:45 +0000)]
(obstack_object_size): Declare temporary, __o, to be const.
(obstack_room): Likewise.
(obstack_empty_p): Likewise.
Jim Meyering [Mon, 20 Jan 2003 15:43:03 +0000 (15:43 +0000)]
Rename type: DS -> Dirstack_state.
Jim Meyering [Mon, 20 Jan 2003 15:40:25 +0000 (15:40 +0000)]
Remove some unnecessary parentheses.
Jim Meyering [Mon, 20 Jan 2003 15:06:38 +0000 (15:06 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 15:06:28 +0000 (15:06 +0000)]
(mail_gpg_sign_cookie): Remove now-unused definition.
Jim Meyering [Mon, 20 Jan 2003 15:04:56 +0000 (15:04 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 15:04:51 +0000 (15:04 +0000)]
From GNU libc.
(my_strftime): Handle very large width
specifications for numeric values correctly. Improve checks for
overflow.
Jim Meyering [Mon, 20 Jan 2003 15:03:12 +0000 (15:03 +0000)]
*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 15:03:04 +0000 (15:03 +0000)]
Merge in changes from libc
Eliminate many `#ifdef USE_IN_LIBIO' conditionals.
Jim Meyering [Sun, 19 Jan 2003 16:42:45 +0000 (16:42 +0000)]
Include config.h.
Add copyright.
Jim Meyering [Sun, 19 Jan 2003 16:14:47 +0000 (16:14 +0000)]
*** empty log message ***
Jim Meyering [Sun, 19 Jan 2003 16:14:41 +0000 (16:14 +0000)]
Include "canonicalize.h".
Jim Meyering [Sun, 19 Jan 2003 16:06:13 +0000 (16:06 +0000)]
duh. fix typo
Jim Meyering [Sun, 19 Jan 2003 13:01:35 +0000 (13:01 +0000)]
(widen) [COMPILE_WIDE]: Merge nearly-identical definitions.
(nl_get_alt_digit) [! defined my_strftime]: Define.
(my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
_nl_get_alt_digit and _nl_get_walt_digit.
Jim Meyering [Sun, 19 Jan 2003 11:51:32 +0000 (11:51 +0000)]
(my_strftime): Merge in locale-related changes from libc.
These changes have no effect outside of _LIBC.
Jim Meyering [Sun, 19 Jan 2003 08:52:25 +0000 (08:52 +0000)]
*** empty log message ***
Jim Meyering [Sun, 19 Jan 2003 08:52:20 +0000 (08:52 +0000)]
(Which files are listed): Document new option:
--dereference-command-line-symlink-to-dir.
Jim Meyering [Sat, 18 Jan 2003 18:36:17 +0000 (18:36 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Jan 2003 18:36:13 +0000 (18:36 +0000)]
(Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]: New member.
(enum) [DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION]: New member.
(long_options): Add option --dereference-command-line-symlink-to-dir.
(main): Make DEREF_COMMAND_LINE_SYMLINK_TO_DIR be the default,
rather than DEREF_COMMAND_LINE_ARGUMENTS, when none of the
-d, -F, -l options is specified.
(decode_switches): Handle --dereference-command-line-symlink-to-dir.
(gobble_file): Honor DEREF_COMMAND_LINE_SYMLINK_TO_DIR.
Change --dereference-command-line (-H) to dereference *all*
command line arguments, including broken symlinks.
Jim Meyering [Sat, 18 Jan 2003 18:06:38 +0000 (18:06 +0000)]
reflect change in how ls -H works
Jim Meyering [Sat, 18 Jan 2003 18:01:51 +0000 (18:01 +0000)]
Change ls -H back to the way it was yesterday, since this is
compatible with FreeBSD and the POSIX spec is confusing
and somewhat contradictory.
(DEREF_COMMAND_LINE_ARGUMENTS): Change name back
from DEREF_COMMAND_LINE_SYMLINK_TO_DIR, updating all uses.
(long_options): Change the long option name back.
(usage): Change the usage back.
(gobble_file): When -H is specified, dereference a top-level
arg even if it points to a non-directory.
Jim Meyering [Sat, 18 Jan 2003 08:41:06 +0000 (08:41 +0000)]
ls [4.1.1]: Mention that --dereference-command-line (-H) is now the default,
unless one of the -d, -F, or -l options are given.
From Paul Eggert
Jim Meyering [Fri, 17 Jan 2003 15:14:21 +0000 (15:14 +0000)]
.
Jim Meyering [Fri, 17 Jan 2003 14:53:19 +0000 (14:53 +0000)]
update from automake/lib
Jim Meyering [Thu, 16 Jan 2003 22:28:13 +0000 (22:28 +0000)]
.
Jim Meyering [Thu, 16 Jan 2003 19:03:42 +0000 (19:03 +0000)]
*** empty log message ***
Jim Meyering [Thu, 16 Jan 2003 19:02:49 +0000 (19:02 +0000)]
*** empty log message ***
Jim Meyering [Thu, 16 Jan 2003 19:01:56 +0000 (19:01 +0000)]
(Which files are listed, General output formatting): Undo last change.
Jim Meyering [Thu, 16 Jan 2003 18:23:18 +0000 (18:23 +0000)]
move prerequisites to precede AC_CACHE_CHECK
Jim Meyering [Thu, 16 Jan 2003 17:34:04 +0000 (17:34 +0000)]
*** empty log message ***
Jim Meyering [Thu, 16 Jan 2003 17:33:52 +0000 (17:33 +0000)]
The `regex' struct is both input and output.
Initialize it before each use. Patch by Tim Waugh.
Jim Meyering [Wed, 15 Jan 2003 21:12:19 +0000 (21:12 +0000)]
rename variable
Jim Meyering [Wed, 15 Jan 2003 21:11:27 +0000 (21:11 +0000)]
Add tsearch.o IFF we have to use the replacement ftw.c.
Jim Meyering [Wed, 15 Jan 2003 17:32:13 +0000 (17:32 +0000)]
Check for declaration of stpcpy.
Jim Meyering [Wed, 15 Jan 2003 13:11:31 +0000 (13:11 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 13:09:04 +0000 (13:09 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 13:09:00 +0000 (13:09 +0000)]
(General output formatting): Reflect option name change:
s/--dereference-command-line/--dereference-command-line-symlink-to-dir/.
Say that this option changes how ls treats only symlinks to directories
specified on the command line.
Jim Meyering [Wed, 15 Jan 2003 12:24:54 +0000 (12:24 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 12:24:04 +0000 (12:24 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 12:23:34 +0000 (12:23 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 12:14:38 +0000 (12:14 +0000)]
.
Jim Meyering [Wed, 15 Jan 2003 12:14:29 +0000 (12:14 +0000)]
Require AC_FUNC_FTW.
Jim Meyering [Wed, 15 Jan 2003 12:13:34 +0000 (12:13 +0000)]
.
Jim Meyering [Wed, 15 Jan 2003 11:59:07 +0000 (11:59 +0000)]
(gobble_file): Fall back on using lstat when required:
when --dereference (-L) is not specified, and
- when operating on a dangling symlink
- when operating on command-line-symlink-to-directories
This fixes numerous problems. Here are examples:
- `ls dangling-symlink' would fail with `no such file...'
Now it prints `dangling-symlink'.
- `ls -i symlink' would mistakenly print the inode of the referent.
Now it prints the inode of the symlink. Likewise for --size (-s).
Based on a patch from Michael Stone.
Reported by Deepak Goel as Debian bug #173793.
Jim Meyering [Wed, 15 Jan 2003 11:58:26 +0000 (11:58 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 11:58:02 +0000 (11:58 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 11:32:59 +0000 (11:32 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 11:32:47 +0000 (11:32 +0000)]
Rename ls's --dereference-command-line (-H)
option to --dereference-command-line-symlink-to-dir.
[enum Dereference_symlink]
(DEREF_COMMAND_LINE_SYMLINK_TO_DIR): Rename from
DEREF_COMMAND_LINE_ARGUMENTS. Update all uses.
(long_options): Rename the option.
(usage): Say that --dereference-... changes how ls treats
only symlinks to directories specified on the command line.
Jim Meyering [Tue, 14 Jan 2003 21:10:26 +0000 (21:10 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 21:10:12 +0000 (21:10 +0000)]
(TESTS): Add dangle and inode.
Jim Meyering [Tue, 14 Jan 2003 20:51:25 +0000 (20:51 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 19:04:28 +0000 (19:04 +0000)]
remove diff's -u
Jim Meyering [Tue, 14 Jan 2003 19:03:00 +0000 (19:03 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 16:23:03 +0000 (16:23 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 16:22:55 +0000 (16:22 +0000)]
(gobble_file): Fix a bug introduced in 4.5.4 that made it
so that ls --color would no longer highlight the names of files with
the execute bit set when not specified on the command line.
Patch by Michael Stone. Reported by Stephen Depooter as
Debian bug 175135.
Jim Meyering [Tue, 14 Jan 2003 16:20:54 +0000 (16:20 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 16:19:09 +0000 (16:19 +0000)]
factor a little
Jim Meyering [Tue, 14 Jan 2003 15:50:18 +0000 (15:50 +0000)]
duh: close file handle
Jim Meyering [Tue, 14 Jan 2003 15:38:23 +0000 (15:38 +0000)]
(color-exe): New test, for the above fix.
Jim Meyering [Tue, 14 Jan 2003 15:10:41 +0000 (15:10 +0000)]
fix typo in comment
Jim Meyering [Tue, 14 Jan 2003 15:09:00 +0000 (15:09 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 15:07:24 +0000 (15:07 +0000)]
(same_name): Declare *_basename locals to be `const'.
Consolidate declarations and initializations of *_base* locals.
Jim Meyering [Tue, 14 Jan 2003 14:44:33 +0000 (14:44 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 14:44:29 +0000 (14:44 +0000)]
(same_name): Reorder tests so as to avoid calling stat()
when a string comparison is sufficient.
Jim Meyering [Tue, 14 Jan 2003 14:15:44 +0000 (14:15 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 14:15:37 +0000 (14:15 +0000)]
(readtoken): Cast character to 'unsigned char', not 'unsigned int'.
Jim Meyering [Tue, 14 Jan 2003 12:58:27 +0000 (12:58 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 12:58:22 +0000 (12:58 +0000)]
Merge in Ulrich's and my changes from libc.
Jim Meyering [Mon, 13 Jan 2003 15:33:43 +0000 (15:33 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 15:33:17 +0000 (15:33 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 15:27:08 +0000 (15:27 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 13:44:14 +0000 (13:44 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 13:44:11 +0000 (13:44 +0000)]
Also test for just fixed bug with --zero.
Jim Meyering [Mon, 13 Jan 2003 13:40:04 +0000 (13:40 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 13:39:44 +0000 (13:39 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 13:35:17 +0000 (13:35 +0000)]
(long_opts): --zero does not require an argument.
Patch by Michael Stone.
Jim Meyering [Sun, 12 Jan 2003 18:29:54 +0000 (18:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 18:29:32 +0000 (18:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 18:16:31 +0000 (18:16 +0000)]
tweak comments
Jim Meyering [Sun, 12 Jan 2003 18:03:52 +0000 (18:03 +0000)]
*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 18:03:48 +0000 (18:03 +0000)]
Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT.
Jim Meyering [Sun, 12 Jan 2003 17:01:53 +0000 (17:01 +0000)]
*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 17:01:48 +0000 (17:01 +0000)]
(ftw_startup): Rename local-shadowing local to pacify gcc.
Jim Meyering [Sun, 12 Jan 2003 16:48:56 +0000 (16:48 +0000)]
New file, from glibc/io.