platform/upstream/coreutils.git
17 years ago.
Jim Meyering [Tue, 15 Aug 2006 12:05:34 +0000 (12:05 +0000)]
.

17 years agoDon't mention "stable" on Version line.
Jim Meyering [Tue, 15 Aug 2006 11:26:17 +0000 (11:26 +0000)]
Don't mention "stable" on Version line.

17 years agotweak syntax of "Version ..." line.
Jim Meyering [Tue, 15 Aug 2006 11:25:13 +0000 (11:25 +0000)]
tweak syntax of "Version ..." line.

17 years ago* TODO: Add an item (convert to use gnulib-tool), add to the plan
Jim Meyering [Tue, 15 Aug 2006 11:23:44 +0000 (11:23 +0000)]
* TODO: Add an item (convert to use gnulib-tool), add to the plan
for id-vs-getgrouplist, and remove a few completed items.

17 years ago* Version 6.0 [unstable].
Jim Meyering [Tue, 15 Aug 2006 11:12:07 +0000 (11:12 +0000)]
* Version 6.0 [unstable].
* NEWS: Record the 6.0 release date.
* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.

17 years agocommit, for the record. May never be used.
Jim Meyering [Tue, 15 Aug 2006 11:08:03 +0000 (11:08 +0000)]
commit, for the record.  May never be used.

17 years agodo not set $path
Jim Meyering [Tue, 15 Aug 2006 11:05:50 +0000 (11:05 +0000)]
do not set $path
Use --leak-check=full, not --quiet.
Emit "--" after $vg.

17 years agoupdate from gnulib
Jim Meyering [Tue, 15 Aug 2006 09:14:36 +0000 (09:14 +0000)]
update from gnulib

17 years ago(memcoll): Optimize for the common case where the
Paul Eggert [Mon, 14 Aug 2006 16:20:49 +0000 (16:20 +0000)]
(memcoll): Optimize for the common case where the
arguments are bytewise equal.

17 years ago* src/shred.c (usage): Don't indent the second line of an item.
Jim Meyering [Sun, 13 Aug 2006 21:21:52 +0000 (21:21 +0000)]
* src/shred.c (usage): Don't indent the second line of an item.
Otherwise, help2man would misformat the output.
Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.

17 years ago* pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
Paul Eggert [Fri, 11 Aug 2006 20:28:42 +0000 (20:28 +0000)]
* pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.

17 years ago(AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
Paul Eggert [Fri, 11 Aug 2006 18:40:41 +0000 (18:40 +0000)]
(AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.

17 years ago(re_string_skip_chars): Don't assume WEOF fits in wchar_t.
Paul Eggert [Fri, 11 Aug 2006 18:29:06 +0000 (18:29 +0000)]
(re_string_skip_chars): Don't assume WEOF fits in wchar_t.

17 years agoFix typo in previous checkin: len -> lenbuf.
Paul Eggert [Fri, 11 Aug 2006 17:47:40 +0000 (17:47 +0000)]
Fix typo in previous checkin: len -> lenbuf.

17 years ago(snprintf): memcpy LEN bytes, not SIZE - 1, when
Paul Eggert [Fri, 11 Aug 2006 17:41:11 +0000 (17:41 +0000)]
(snprintf): memcpy LEN bytes, not SIZE - 1, when
LEN is smaller than SIZE.  Suggested by Bruno Haible.
Also, help the compiler to keep LEN in a register.

17 years ago* tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
Jim Meyering [Fri, 11 Aug 2006 08:40:11 +0000 (08:40 +0000)]
* tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
failure that this test checks for (stat/dirent inode mismatch at
a mount point), so continue to give a diagnostic about the failure,
but don't actually count it as a failure.

17 years agoUndo latest change; I was confused about gettext versus gcc.
Paul Eggert [Thu, 10 Aug 2006 22:53:24 +0000 (22:53 +0000)]
Undo latest change; I was confused about gettext versus gcc.

17 years agoUndo latest change; I was confused about xgettext versus gcc.
Paul Eggert [Thu, 10 Aug 2006 22:52:57 +0000 (22:52 +0000)]
Undo latest change; I was confused about xgettext versus gcc.

17 years agoAdjust some files for gettext 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:51:06 +0000 (22:51 +0000)]
Adjust some files for gettext 0.15.

17 years agoImport from gettext 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:50:40 +0000 (22:50 +0000)]
Import from gettext 0.15.

17 years ago(XGETTEXT_OPTIONS): Add pass-c-format flags for
Paul Eggert [Thu, 10 Aug 2006 22:50:17 +0000 (22:50 +0000)]
(XGETTEXT_OPTIONS): Add pass-c-format flags for
_ and N_, so that we get format checking even when --enable-nls.
Add c-format flags for error, error_at_line, asprintf, vasprintf,
asnprintf, vasnprintf, wrapf.
(USE_MSGCTXT): New macro.

17 years ago(my-distcheck): Don't bother with --disable-nls,
Paul Eggert [Thu, 10 Aug 2006 22:49:50 +0000 (22:49 +0000)]
(my-distcheck): Don't bother with --disable-nls,
as it shouldn't be needed with gettext 0.15.

17 years ago(AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:49:26 +0000 (22:49 +0000)]
(AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.

17 years agoImport from gettext 0.15
Paul Eggert [Thu, 10 Aug 2006 22:49:06 +0000 (22:49 +0000)]
Import from gettext 0.15

17 years ago(struct control): Remove fastmap member.
Paul Eggert [Thu, 10 Aug 2006 20:53:32 +0000 (20:53 +0000)]
(struct control): Remove fastmap member.
(extract_regexp): Allocate fastmap separately, since otherwise
it might move due to a realloc.

17 years agoImport regex changes from libc via gnulib.
Paul Eggert [Thu, 10 Aug 2006 20:49:28 +0000 (20:49 +0000)]
Import regex changes from libc via gnulib.

17 years agoUpdate cycle-check from gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:26:39 +0000 (19:26 +0000)]
Update cycle-check from gnulib.

17 years agoAccommodate new getaddrinfo implementation in gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:10:52 +0000 (19:10 +0000)]
Accommodate new getaddrinfo implementation in gnulib.
(gl_PREREQ): Require gl_FUNC_SNPRINTF, gl_GETADDRINFO,
gl_HEADER_ARPA_INET, gl_HEADER_NETINET_IN, gl_HEADER_SYS_SOCKET,
gl_INET_NTOP, gl_TYPE_SOCKEN_T.

17 years agoAccommodate new getaddrinfo implementation in gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:10:26 +0000 (19:10 +0000)]
Accommodate new getaddrinfo implementation in gnulib.
(libcoreutils_a_SOURCES): Add inet_ntop.h, snprintf.h.
(MOSTLYCLEANDIRS): New macro.
(BUILT_SOURCES): Add $(ARPA_INET_H), $(SYS_SOCKET_H), $(NETINET_IN_H).
(arpa/inet.h, netinet/in.h, sys/socket.h): New rules.
(MOSTLYCLEANFILES): Add arpa/inet.h, arpa/inet.h-t, netinet/in.h,
netinet/in.h-t, sys/socket.h, sys/socket.h-t.
(EXTRA_DIST): Add socket_.h.

17 years agoImport from gnulib, to support new getaddrinfo implementation of gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:09:33 +0000 (19:09 +0000)]
Import from gnulib, to support new getaddrinfo implementation of gnulib.

17 years agoAdd snprintf.h, socket_.h.
Paul Eggert [Thu, 10 Aug 2006 19:08:58 +0000 (19:08 +0000)]
Add snprintf.h, socket_.h.

17 years ago* tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
Jim Meyering [Thu, 10 Aug 2006 09:22:33 +0000 (09:22 +0000)]
* tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
reports "Linux".  This avoids a failure on Solaris 10's tmpfs.
Redirect both stdout and stderr of df invocations.

17 years ago* src/dircolors.hin: Add a TERM directive for each of the following:
Jim Meyering [Thu, 10 Aug 2006 08:50:37 +0000 (08:50 +0000)]
* src/dircolors.hin: Add a TERM directive for each of the following:
ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
rxvt-cygwin-native, screen.linux, xterm-256color.
Sort the TERM directives.
From Mike Frysinger.

17 years agoadd a comment
Jim Meyering [Thu, 10 Aug 2006 08:25:03 +0000 (08:25 +0000)]
add a comment

17 years agoRegenerate.
Paul Eggert [Wed, 9 Aug 2006 23:46:10 +0000 (23:46 +0000)]
Regenerate.

17 years agoRegenerate.
Paul Eggert [Wed, 9 Aug 2006 23:44:56 +0000 (23:44 +0000)]
Regenerate.

17 years agoSync from gnulib.
Paul Eggert [Wed, 9 Aug 2006 23:44:30 +0000 (23:44 +0000)]
Sync from gnulib.

17 years agoSync from gnulib.
Paul Eggert [Wed, 9 Aug 2006 23:42:26 +0000 (23:42 +0000)]
Sync from gnulib.

17 years agoWarn about oflag=append without conv=notrunc.
Paul Eggert [Wed, 9 Aug 2006 21:16:28 +0000 (21:16 +0000)]
Warn about oflag=append without conv=notrunc.

17 years agoAdd mlterm, rxvt-unicode; this fixes Debian bug 317503.
Paul Eggert [Wed, 9 Aug 2006 20:56:15 +0000 (20:56 +0000)]
Add mlterm, rxvt-unicode; this fixes Debian bug 317503.

17 years agoRegenerate.
Paul Eggert [Wed, 9 Aug 2006 20:24:38 +0000 (20:24 +0000)]
Regenerate.

17 years agoRegenerate.
Paul Eggert [Wed, 9 Aug 2006 20:23:36 +0000 (20:23 +0000)]
Regenerate.

17 years agoAdd shuf.
Paul Eggert [Wed, 9 Aug 2006 20:23:07 +0000 (20:23 +0000)]
Add shuf.

17 years ago* LINGUAS: Add ro, sr, uk, wa.
Paul Eggert [Wed, 9 Aug 2006 20:11:12 +0000 (20:11 +0000)]
* LINGUAS: Add ro, sr, uk, wa.
* ro.po, sr.po, uk,po, wa.po: New files.
Regenerate other translations.

17 years agoRemove the po-update procedure; it doesn't
Paul Eggert [Wed, 9 Aug 2006 20:06:14 +0000 (20:06 +0000)]
Remove the po-update procedure; it doesn't
work with the new repository on http://www.iro.umontreal.ca/.
For now I guess we'll have to fix things by hand.
(do-po-update, po-update): Remove.  All references removed.

17 years agoFix too-long line in 2006-08-08 checkin, and an encoding error
Paul Eggert [Wed, 9 Aug 2006 20:05:18 +0000 (20:05 +0000)]
Fix too-long line in 2006-08-08 checkin, and an encoding error
in 2006-07-19 checkin.

17 years ago(my-distcheck): Compile with -Wpointer-arith
Paul Eggert [Wed, 9 Aug 2006 18:08:06 +0000 (18:08 +0000)]
(my-distcheck): Compile with -Wpointer-arith
to detect this sort of problem automatically in the future.

17 years ago(next_line): New function.
Paul Eggert [Wed, 9 Aug 2006 18:07:43 +0000 (18:07 +0000)]
(next_line): New function.
(read_input): Use it, to avoid relying on GCC-specific behavior
with void * arithmetic.

17 years agoAdd a compile-time check to ensure that filetype
Jim Meyering [Wed, 9 Aug 2006 09:45:17 +0000 (09:45 +0000)]
Add a compile-time check to ensure that filetype
and filetype_letter have the same number of elements.

17 years agoRemove use of --seed=S.
Jim Meyering [Wed, 9 Aug 2006 08:24:37 +0000 (08:24 +0000)]
Remove use of --seed=S.

17 years agoInclude <config.h>.
Jim Meyering [Wed, 9 Aug 2006 08:13:36 +0000 (08:13 +0000)]
Include <config.h>.

17 years agoAdd lib/randread.c, lib/xmemxfrm.c, and src/shuf.c.
Jim Meyering [Wed, 9 Aug 2006 08:12:27 +0000 (08:12 +0000)]
Add lib/randread.c, lib/xmemxfrm.c, and src/shuf.c.

17 years agoFix typo in latest changelog entry: restrict.m4 wasn't logged right.
Paul Eggert [Tue, 8 Aug 2006 22:41:15 +0000 (22:41 +0000)]
Fix typo in latest changelog entry: restrict.m4 wasn't logged right.

17 years agoAdd shuf, better random number generation, and fix sort -R in
Paul Eggert [Tue, 8 Aug 2006 22:28:00 +0000 (22:28 +0000)]
Add shuf, better random number generation, and fix sort -R in
funny locales.

17 years agoRemove, since we no longer need gl_RESTRICT.
Paul Eggert [Tue, 8 Aug 2006 22:26:44 +0000 (22:26 +0000)]
Remove, since we no longer need gl_RESTRICT.

17 years agoRemove; its contents are now in ../lib/rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:23:11 +0000 (22:23 +0000)]
Remove; its contents are now in ../lib/rand-isaac.c.

17 years agoNew file, introduced for shuf, sort -R, and/or shred.
Paul Eggert [Tue, 8 Aug 2006 22:22:47 +0000 (22:22 +0000)]
New file, introduced for shuf, sort -R, and/or shred.

17 years ago(TESTS): Add shuf.
Paul Eggert [Tue, 8 Aug 2006 22:20:59 +0000 (22:20 +0000)]
(TESTS): Add shuf.

17 years agoUse new random-number interface rather than rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:20:12 +0000 (22:20 +0000)]
Use new random-number interface rather than rand-isaac.c.
Don't include rand-isaac.c; include randint.h and randread.h instead.
(RANDOM_SOURCE_OPTION): New enum.
(long_opts, usage, main): New option --random-source.
Include md5.h, randread.h, xmemxfrm.h.
(longopts, usage, main): Remove undocumented --seed option;
it's now replaced by --random-source.
(rand_state, get_hash): Remove.
(randread_source): New static var.
(random_state, cmp_hashes, compare_random): New functions; they guarantee
no collisions in the random hash function.
(keycompare): Use compare_random for -R; don't fall back on comparing
via memcoll, since compare_random does the right thing.

17 years agoUse new random-number interface rather than rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:19:39 +0000 (22:19 +0000)]
Use new random-number interface rather than rand-isaac.c.
Don't include rand-isaac.c; include randint.h and randread.h instead.
(RANDOM_SOURCE_OPTION): New enum.
(long_opts, usage, main): New option --random-source.
(struct irand_state, irand_init, irand32, irand_mod): Remove.
All callers changed to use randint interface.
(fillrand): Remove.  All callers changed to use randread interface.
(dopass): Remove dependency on ISAAC buffer size.
(genpattern): Don't wipe the random state here.
(randint_source): New static var.
(clear_random_data): New function.
(main): Allocate random source, and arrange to wipe it on exit.

17 years ago(bin_PROGRAMS): Add shuf.
Paul Eggert [Tue, 8 Aug 2006 22:19:03 +0000 (22:19 +0000)]
(bin_PROGRAMS): Add shuf.
(EXTRA_DIST): Remove rand-isaac.c.
(shuf_LDADD): New macro.

17 years ago(dist_man_MANS): Add shuf.1.
Paul Eggert [Tue, 8 Aug 2006 22:18:39 +0000 (22:18 +0000)]
(dist_man_MANS): Add shuf.1.
(shuf.1): New dependency.

17 years agoAdd shuf.1.
Paul Eggert [Tue, 8 Aug 2006 22:18:20 +0000 (22:18 +0000)]
Add shuf.1.

17 years ago(gl_TIME_R): Use AC_C_RESTRICT, not
Paul Eggert [Tue, 8 Aug 2006 22:17:56 +0000 (22:17 +0000)]
(gl_TIME_R): Use AC_C_RESTRICT, not
gl_C_RESTRICT, since we assume recent Autoconf.

17 years ago(gl_PREREQ_REGEX): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we
Paul Eggert [Tue, 8 Aug 2006 22:17:20 +0000 (22:17 +0000)]
(gl_PREREQ_REGEX): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we
assume recent Autoconf.

17 years ago(gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM,
Paul Eggert [Tue, 8 Aug 2006 22:16:51 +0000 (22:16 +0000)]
(gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM,
gl_RANDREAD.

17 years ago(gl_PREREQ_GETADDRINFO): Use AC_C_RESTRICT, not
Paul Eggert [Tue, 8 Aug 2006 22:16:18 +0000 (22:16 +0000)]
(gl_PREREQ_GETADDRINFO): Use AC_C_RESTRICT, not
gl_C_RESTRICT, since we assume recent Autoconf.

17 years ago(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.
Paul Eggert [Tue, 8 Aug 2006 22:12:21 +0000 (22:12 +0000)]
(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.

17 years ago(shuf invocation, Random sources): New sections.
Paul Eggert [Tue, 8 Aug 2006 22:11:49 +0000 (22:11 +0000)]
(shuf invocation, Random sources): New sections.
(Operating on sorted files): Add shuf.
(sort invocation, shred invocation): New option --random-source.
(sort invocation): Fix typo: -R -> -r.

17 years agoAdd shuf.
Paul Eggert [Tue, 8 Aug 2006 22:11:18 +0000 (22:11 +0000)]
Add shuf.

17 years agoAdd shuf. Mention new --random-source option for shred and sort.
Paul Eggert [Tue, 8 Aug 2006 22:10:39 +0000 (22:10 +0000)]
Add shuf.  Mention new --random-source option for shred and sort.
Move "sort +1 -2" notice to the appropriate section, and clarify its
role with respect to POSIXLY_CORRECT.

17 years agoAdd shuf.
Paul Eggert [Tue, 8 Aug 2006 22:10:05 +0000 (22:10 +0000)]
Add shuf.

17 years ago(set_author): Preserve the st_author field via the
Paul Eggert [Sat, 29 Jul 2006 17:13:28 +0000 (17:13 +0000)]
(set_author): Preserve the st_author field via the
file descriptor dest_desc.

17 years agochmod 0755 DIR and chmod 755 DIR are now equivalent.
Paul Eggert [Fri, 28 Jul 2006 07:28:56 +0000 (07:28 +0000)]
chmod 0755 DIR and chmod 755 DIR are now equivalent.

17 years agochmod now preserves setuid and setgid bits on directories
Paul Eggert [Fri, 28 Jul 2006 07:27:56 +0000 (07:27 +0000)]
chmod now preserves setuid and setgid bits on directories
if you use a numeric mode with them clear, e.g., "chmod 755 DIR".

17 years agoClear setuid and setuid bits on directory, in case the build
Paul Eggert [Fri, 28 Jul 2006 07:27:20 +0000 (07:27 +0000)]
Clear setuid and setuid bits on directory, in case the build
directory has them set and they're inherited.

17 years agoUse symbolic mode so that we clear
Paul Eggert [Fri, 28 Jul 2006 07:26:39 +0000 (07:26 +0000)]
Use symbolic mode so that we clear
setgid bit more reliably on directories.

17 years agoRemove obsolete comment about masks.
Paul Eggert [Fri, 28 Jul 2006 07:26:06 +0000 (07:26 +0000)]
Remove obsolete comment about masks.

17 years ago(mode_compile): Numeric modes now affect setuid and
Paul Eggert [Fri, 28 Jul 2006 07:25:44 +0000 (07:25 +0000)]
(mode_compile): Numeric modes now affect setuid and
setgid on directories only if they set these bits.

17 years ago(Changing Special Mode Bits): Clarify u+s versus
Paul Eggert [Fri, 28 Jul 2006 07:21:03 +0000 (07:21 +0000)]
(Changing Special Mode Bits): Clarify u+s versus
a+s versus +s, and likewise for g+s.
(Numeric Modes): Bring back example of 0055 == 55.  4755 no
longer clears setgid bit on directories.
(Directory Setuid and Setgid): Numeric modes now affect setuid
and setgid on directories only if they set these bits.  This
is so that leading 0 has no effect on numeric modes.

17 years ago(install invocation, mkdir invocation):
Paul Eggert [Fri, 28 Jul 2006 07:20:28 +0000 (07:20 +0000)]
(install invocation, mkdir invocation):
Add cross-references to Directory Setuid and Setgid.
(install-invocation): The default mode is no longer equivalent to 755.

17 years ago* src/chgrp.c (usage): Use correct grammar in description of the --reference option
Jim Meyering [Thu, 27 Jul 2006 09:11:08 +0000 (09:11 +0000)]
* src/chgrp.c (usage): Use correct grammar in description of the --reference option
* src/chown.c (usage): Likewise.

17 years ago* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
Jim Meyering [Wed, 26 Jul 2006 14:43:00 +0000 (14:43 +0000)]
* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:
Correctly access SRC_SB's element ST_AUTHOR.

17 years ago* tests/ls/stat-failed: Adapt to match new expected output.
Jim Meyering [Wed, 26 Jul 2006 14:35:19 +0000 (14:35 +0000)]
* tests/ls/stat-failed: Adapt to match new expected output.
From Paul Eggert.

17 years ago* src/ls.c (print_color_indicator): Test for S_IFREG first, rather
Jim Meyering [Wed, 26 Jul 2006 14:06:57 +0000 (14:06 +0000)]
* src/ls.c (print_color_indicator): Test for S_IFREG first, rather
than having the code test for all of the other types first.
Hoist the set-uid/gid-testing code "up" into this new block.
Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
C_ORPHAN, not as C_FILE.

* doc/coreutils.texi (What information is listed): Mention that missing
pieces of information are marked with "?".  From Paul Eggert.

17 years agoChecking in a change from Paul.
Jim Meyering [Wed, 26 Jul 2006 13:47:41 +0000 (13:47 +0000)]
Checking in a change from Paul.

2006-07-25  Paul Eggert  <eggert@cs.ucla.edu>

* src/ls.c (DT_INIT): Remove.  All uses removed.
(enum filetype): Use an ordinary enum rather than trying to keep
the values in sync with DT_FIFO etc.  That way, we don't have
to make special assumptions about them.  All uses changed.
(whiteout): New constant member of enum filetype.
(filetype_letter): New constant, for use with enum filetype.
(FILETYPE_INDICATORS): New initializer list.
(print_dir): Add case for DT_WHT.
(gobble_file): If stat fails, don't discard information from
readdir; instead, preserve it so it can be printed.
(print_long_format): Fall back on readdir result if stat info
is not available.  Use "?" to denote each unknown mode char,
instead of an overall "?", since we now know some of the mode
typically.
(print_type_indicator): Now that MODE isn't necessarily
useful, guard all uses.
Now that two blocks in the type-checking tree can set "type = C_FILE",
move the suffix-handling code out and down.

17 years agoPrepare for the above change.
Jim Meyering [Wed, 26 Jul 2006 13:33:07 +0000 (13:33 +0000)]
Prepare for the above change.
* src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
and adjust uses.  From a patch by Paul Eggert.

17 years ago* src/ls.c: Correct indentation/formatting in a few places.
Jim Meyering [Wed, 26 Jul 2006 09:52:43 +0000 (09:52 +0000)]
* src/ls.c: Correct indentation/formatting in a few places.

17 years agoClarify the "chmod 0500" news, and correct the vague
Paul Eggert [Tue, 25 Jul 2006 18:38:58 +0000 (18:38 +0000)]
Clarify the "chmod 0500" news, and correct the vague
statements about compatibility with BSD.

17 years agoUse "chmod 0500" rather than "chmod 500".
Paul Eggert [Tue, 25 Jul 2006 18:38:25 +0000 (18:38 +0000)]
Use "chmod 0500" rather than "chmod 500".

17 years ago(Directory Setuid and Setgid): Explain that this is a
Paul Eggert [Tue, 25 Jul 2006 18:37:55 +0000 (18:37 +0000)]
(Directory Setuid and Setgid): Explain that this is a
GNU extension, and that other systems behave differently here.

17 years ago* src/ls.c (gobble_file): When handling a stat-failed entry,
Jim Meyering [Tue, 25 Jul 2006 16:35:59 +0000 (16:35 +0000)]
* src/ls.c (gobble_file): When handling a stat-failed entry,
print the entry name not the absolute_name -- to be consistent
with the usual case.
* tests/ls/stat-failed: Update accordingly.

17 years ago* tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
Jim Meyering [Tue, 25 Jul 2006 15:40:02 +0000 (15:40 +0000)]
* tests/ls-2/tests (no-a-isdir-b): Update to reflect addition
of "cannot access " to diagnostic.

17 years ago*** empty log message ***
Jim Meyering [Tue, 25 Jul 2006 15:36:07 +0000 (15:36 +0000)]
*** empty log message ***

17 years ago* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.
Jim Meyering [Tue, 25 Jul 2006 15:34:58 +0000 (15:34 +0000)]
* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.

17 years ago* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.
Jim Meyering [Tue, 25 Jul 2006 15:33:57 +0000 (15:33 +0000)]
* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.

17 years agoGet --dired offsets right when handling stat-failed entries.
Jim Meyering [Tue, 25 Jul 2006 15:30:27 +0000 (15:30 +0000)]
Get --dired offsets right when handling stat-failed entries.
* src/ls.c (print_long_format): Be careful to increment P by the
appropriate amount, even when inode_number_width and nlink_width
are zero.
* tests/ls/stat-failed: Test for the above.

17 years ago* src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
Jim Meyering [Tue, 25 Jul 2006 15:25:37 +0000 (15:25 +0000)]
* src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the
have_acl member.  That would happen for a directory with both a
non-stat'able entry and one with an ACL.

17 years ago* src/ls.c (gobble_file): Make it so failure to stat a
Jim Meyering [Tue, 25 Jul 2006 15:23:59 +0000 (15:23 +0000)]
* src/ls.c (gobble_file): Make it so failure to stat a
non-command-line file provokes an exit status of 1, not 0.
Say "cannot access" rather than "cannot stat".
* tests/ls/stat-failed: New file/test, for the above.
* tests/ls/Makefile.am (TESTS): Add stat-failed.

17 years ago* src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.
Jim Meyering [Tue, 25 Jul 2006 15:13:56 +0000 (15:13 +0000)]
* src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.