Commit Graph
19892 Commits
Author SHA1 Message Date
Paul Eggert c4e4091ea4 (print_dir): Use "%s: not listing already-listed
directory", not "not listing already-listed directory: %s", to
format already-listed directories, to be consistent with other
diagnostics involving file names and colons.
2004-12-17 05:08:40 +00:00
Paul Eggert 4d2bb0f15f * coreutils.texi: Fix minor problems in "ls" and "dircolors". 2004-12-15 22:08:29 +00:00
Paul Eggert 6627d41367 (ls invocation): Change minor problem to be
"subdirectory not found", since top-level trouble is now serious.
(dircolors invocation): Quote argument to eval.  Problem reported
by Stephane Chazelas.
2004-12-15 22:08:07 +00:00
Jim Meyering 645c39078d *** empty log message *** 2004-12-15 16:15:16 +00:00
Jim Meyering c3fd921063 mention tac bug fix 2004-12-15 16:03:12 +00:00
Jim Meyering 3ca5e74d7d . 2004-12-15 16:02:35 +00:00
Jim Meyering 1e7ea4b296 *** empty log message *** 2004-12-14 23:53:55 +00:00
Jim Meyering a957600333 (__LDADD): Define, so that building `[' on
Solaris still uses the -lgen library that it requires in order
to get a definition of eaccess.
2004-12-14 23:53:48 +00:00
Jim Meyering 0b69561a53 *** empty log message *** 2004-12-14 22:16:44 +00:00
Jim Meyering 029d4e08eb Add Bulgarian (bg). 2004-12-14 22:16:39 +00:00
Jim Meyering 01ea33e1c7 version: 5.2.1 2004-12-14 22:15:59 +00:00
Jim Meyering 0a956f54d1 *** empty log message *** 2004-12-14 10:43:11 +00:00
Jim Meyering cb227e6230 *** empty log message *** 2004-12-14 10:43:05 +00:00
Jim Meyering 86a23aebf8 Add a few more tests. 2004-12-14 10:42:58 +00:00
Jim Meyering d1d6f6e13b . 2004-12-14 10:41:00 +00:00
Jim Meyering 4386c3b146 *** empty log message *** 2004-12-14 10:40:18 +00:00
Jim Meyering 1cc8ed65ad *** empty log message *** 2004-12-14 10:36:08 +00:00
Jim Meyering 6f4d4a7a52 (TESTS): Add tac-continue. 2004-12-14 10:36:04 +00:00
Jim Meyering 300369d75c Ensure that tac processes all command line arguments, even
when it encounters an error with say the first one.
2004-12-14 10:35:35 +00:00
Jim Meyering 9a13cce9ec [DONT_UNLINK_WHILE_OPEN]: Add a FIXME comment explaining that
using atexit like this is wrong.
2004-12-14 10:28:03 +00:00
Jim Meyering b4062c8a22 *** empty log message *** 2004-12-14 09:54:16 +00:00
Jim Meyering ab8392641b (tac_nonseekable): Return false also if copy_to_temp fails. 2004-12-14 09:52:58 +00:00
Jim Meyering 7f44c8d24e *** empty log message *** 2004-12-14 08:51:00 +00:00
Jim Meyering 4c42cf3fdb Include quotearg.h.
Use quotearg_colon in most diagnostics.
(copy_to_temp): Rewrite not to exit upon I/O or temp-file-creation
failure.  Before, this command (with /full/tmp being a full partition)
  TMPDIR=/full/tmp ./tac /proc/modules tac.c
would exit immediately upon the write error while trying to copy
non-seekable /proc/modules to the full partition.  Now it still
reports the failure but continues on with the remaining file.
2004-12-14 08:50:52 +00:00
Paul Eggert 5d528360ff Cause top-level failures to exit with status 2 with "ls". 2004-12-14 00:43:20 +00:00
Paul Eggert ad58599404 (no-a-isdir-b): This now exits with status 2,
not status 1.
2004-12-14 00:42:46 +00:00
Paul Eggert b58dea554e (gobble_file): Change arg name to be command_line_arg
rather than explicit_arg, for consistency with copy.c.
(extract_dirs_from_files): Remove ignore_dot_and_dot_dot arg, since
it is deducible from dirname arg.  All callers changed.
(extract_dirs_from_files, print_dir, queue_directory):
Add command_line_arg arg.  All callers changed.
(struct pending): Add command_line_arg member.
(main): Use NULL rather than 0 when appropriate.
(set_exit_status, file_failure): New functions.
(queue_directory): Store command_line_arg into new structure.
(print_dir, gobble_file, get_link_name):
Use file_failure to report problems in accessing files,
so that the exit status is set consistently.
(print_dir): Simplify readdir failure code yet again.
If closedir fails, report "closing directory" rather than "reading
directory" failure.
(xstrcoll): Use set_exit_status to set status on failure.
2004-12-14 00:42:19 +00:00
Paul Eggert 206ec55a41 * coreutils.texi (join invocation): Blank separators need quoting. 2004-12-12 07:25:01 +00:00
Paul Eggert e31480005a (join invocation): Mention that blank separators
in the -o option need to be quoted.
2004-12-12 07:24:31 +00:00
Jim Meyering ec61e1b8fe *** empty log message *** 2004-12-11 11:21:48 +00:00
Jim Meyering 19c959bd50 adjust wording of #error message 2004-12-11 11:19:27 +00:00
Jim Meyering c3ccae892f Fail via #error if PATH_MAX is not defined, since
this file is now compiled only on systems that define PATH_MAX.
2004-12-11 11:18:53 +00:00
Jim Meyering 86e1787721 chown race fix 2004-12-11 10:28:58 +00:00
Jim Meyering 5e0cc47437 *** empty log message *** 2004-12-11 10:28:49 +00:00
Jim Meyering 051f13f135 *** empty log message *** 2004-12-11 10:24:15 +00:00
Jim Meyering cbff85ac09 Avoid a race condition vulnerability in chown, when used with
--from=O:G and without the (-h) --no-dereference option.

(restricted_chown): New function.
(change_file_owner): Call it.
Reported by Ulrich Drepper.
2004-12-11 10:24:12 +00:00
Paul Eggert 9278bc44cd * coreutils.texi (id invocation): -G also prints main group. 2004-12-11 00:09:29 +00:00
Paul Eggert d34fd3ed23 (id invocation): -G also prints main group. 2004-12-11 00:09:07 +00:00
Jim Meyering dca77596d5 *** empty log message *** 2004-12-10 00:02:26 +00:00
Jim Meyering 1d2622852b (gl_FUNC_CHDIR_LONG): Arrange to compile chdir-long.c only on systems
that define PATH_MAX.
2004-12-10 00:02:08 +00:00
Paul Eggert 5ff0e88866 ls now exits with status 1 if minor problem, 2 on serious trouble. 2004-12-09 17:51:23 +00:00
Paul Eggert 1782c40176 (ls invocation): Document new "ls" exit status. 2004-12-09 17:50:54 +00:00
Paul Eggert c3b2c15cfe ls now exits with status 1 on minor problems, 2 if serious trouble. 2004-12-09 17:49:45 +00:00
Paul Eggert a64afdee8b ls and variants now exit with status 2 on serious trouble. 2004-12-09 17:49:18 +00:00
Paul Eggert 310ef64346 (LS_MINOR_PROBLEM, LS_FAILURE): New constants.
All uses of EXIT_FAILURE replaced with LS_FAILURE, unless
specified below.
(main): Initialize exit failure to LS_FAILURE.
(print_dir, gobble_file, get_link_name, xstrcoll):
Set exit status to LS_MINOR_PROBLEM if the failure is minor.
(print_dir): Do not give up on entire directory merely because readdir
returns EOVERFLOW.
(usage): Explain exit status.
2004-12-09 17:48:57 +00:00
Paul Eggert 73eca3827e Undo previous change. 2004-12-08 23:05:42 +00:00
Paul Eggert 394d21a31e Undo previous change; it's already there. 2004-12-08 23:05:13 +00:00
Paul Eggert 0f504f3f36 * src/join.c (usage): Mention that input files should be sorted. 2004-12-08 23:03:02 +00:00
Paul Eggert 98fe5b67ac (usage): Mention that input files should be sorted. 2004-12-08 23:02:45 +00:00
Paul Eggert 7a0a0d4e7c * NEWS: Document new UTC+HH:MM date syntax, and put date changes together. 2004-12-08 22:38:26 +00:00