Commit Graph
24019 Commits
Author SHA1 Message Date
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
Paul Eggert 05af1b4f11 Document new UTC+HH:MM date syntax, and put date changes together. 2004-12-08 22:38:10 +00:00
Paul Eggert a00580a677 (Time of day items, Time zone items):
Describe new formats +00:00, UTC+00:00.
2004-12-08 22:27:12 +00:00
Paul Eggert 9d683a1b65 Add support for time zones like +HH:MM and UTC+HH:MM. 2004-12-08 22:26:37 +00:00
Paul Eggert 50c9e0509c (textint): New member "negative".
(time_zone_hhmm): New function.
Expect 14 shift-reduce conflicts, not 13.
(o_colon_minutes): New rule.
(time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
(yylex): Set the "negative" member of signed numbers.
2004-12-08 22:26:07 +00:00
Paul Eggert ba5a97696f * src/factor.c (factor): Don't list 1 as a factor of 1. 2004-12-07 21:12:40 +00:00
Paul Eggert f84a6e71fe (factor): Don't list 1 as a factor of 1.
Problem reported by Thomas Folz-Donahue.
2004-12-07 21:11:59 +00:00
Paul Eggert 29a74f8a30 * ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change: spurious "-l"s. 2004-12-07 18:44:22 +00:00
Paul Eggert c2f3ca32d2 (AC_FUNC_GETMNTENT): Fix typo in previous change:
spurious "-l"s.
2004-12-07 18:44:07 +00:00
Jim Meyering 1a55542a7c *** empty log message *** 2004-12-06 22:45:41 +00:00
Jim Meyering 0170a262f5 *** empty log message *** 2004-12-06 22:44:39 +00:00
Jim Meyering d28eb0923b Sanitize environment.
Otherwise, e.g., BLOCKSIZE=k would cause a failure.
2004-12-06 22:42:47 +00:00
Jim Meyering 31ae5dcf85 . 2004-12-06 22:25:12 +00:00
Paul Eggert e4b102af0e * ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
in Autoconf 2.59.
2004-12-06 21:56:21 +00:00
Jim Meyering 97af685a66 . 2004-12-06 11:52:00 +00:00
Jim Meyering ff2b33dcae *** empty log message *** 2004-12-06 11:50:04 +00:00
Jim Meyering c1d66f31cf Use AC_LIBOBJ(save-cwd). 2004-12-06 10:35:27 +00:00
Jim Meyering 760cfaf4d3 Use AC_LIBOBJ(chdir-long). 2004-12-06 10:35:19 +00:00
Jim Meyering d4579825bc (libfetish_a_SOURCES): Begin removing .c and .h file names, as they
are added to AC_LIBSOURCES directives in the corresponding m4/*.m4 files.
2004-12-06 10:10:19 +00:00
Jim Meyering 27d14caedd *** empty log message *** 2004-12-06 10:06:49 +00:00
Jim Meyering 6ec428b7f7 (gl_SAVE_CWD): Use AC_LIBSOURCES. 2004-12-06 10:06:23 +00:00
Jim Meyering e90702fd4b *** empty log message *** 2004-12-06 10:03:46 +00:00
Jim Meyering f005eb317b (gl_FUNC_MEMPCPY): Use AC_LIBSOURCES. 2004-12-06 10:03:39 +00:00
Jim Meyering 3d1e6484f5 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES. 2004-12-06 10:02:18 +00:00