]> git.ipfire.org Git - thirdparty/coreutils.git/log
thirdparty/coreutils.git
20 years ago(gobble_file): Change arg name to be command_line_arg
Paul Eggert [Tue, 14 Dec 2004 00:42:19 +0000 (00:42 +0000)] 
(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.

20 years ago* coreutils.texi (join invocation): Blank separators need quoting.
Paul Eggert [Sun, 12 Dec 2004 07:25:01 +0000 (07:25 +0000)] 
* coreutils.texi (join invocation): Blank separators need quoting.

20 years ago(join invocation): Mention that blank separators
Paul Eggert [Sun, 12 Dec 2004 07:24:31 +0000 (07:24 +0000)] 
(join invocation): Mention that blank separators
in the -o option need to be quoted.

20 years ago*** empty log message ***
Jim Meyering [Sat, 11 Dec 2004 11:21:48 +0000 (11:21 +0000)] 
*** empty log message ***

20 years agoadjust wording of #error message
Jim Meyering [Sat, 11 Dec 2004 11:19:27 +0000 (11:19 +0000)] 
adjust wording of #error message

20 years agoFail via #error if PATH_MAX is not defined, since
Jim Meyering [Sat, 11 Dec 2004 11:18:53 +0000 (11:18 +0000)] 
Fail via #error if PATH_MAX is not defined, since
this file is now compiled only on systems that define PATH_MAX.

20 years agochown race fix
Jim Meyering [Sat, 11 Dec 2004 10:28:58 +0000 (10:28 +0000)] 
chown race fix

20 years ago*** empty log message ***
Jim Meyering [Sat, 11 Dec 2004 10:28:49 +0000 (10:28 +0000)] 
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sat, 11 Dec 2004 10:24:15 +0000 (10:24 +0000)] 
*** empty log message ***

20 years agoAvoid a race condition vulnerability in chown, when used with
Jim Meyering [Sat, 11 Dec 2004 10:24:12 +0000 (10:24 +0000)] 
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.

20 years ago* coreutils.texi (id invocation): -G also prints main group.
Paul Eggert [Sat, 11 Dec 2004 00:09:29 +0000 (00:09 +0000)] 
* coreutils.texi (id invocation): -G also prints main group.

20 years ago(id invocation): -G also prints main group.
Paul Eggert [Sat, 11 Dec 2004 00:09:07 +0000 (00:09 +0000)] 
(id invocation): -G also prints main group.

20 years ago*** empty log message ***
Jim Meyering [Fri, 10 Dec 2004 00:02:26 +0000 (00:02 +0000)] 
*** empty log message ***

20 years ago(gl_FUNC_CHDIR_LONG): Arrange to compile chdir-long.c only on systems
Jim Meyering [Fri, 10 Dec 2004 00:02:08 +0000 (00:02 +0000)] 
(gl_FUNC_CHDIR_LONG): Arrange to compile chdir-long.c only on systems
that define PATH_MAX.

20 years agols now exits with status 1 if minor problem, 2 on serious trouble.
Paul Eggert [Thu, 9 Dec 2004 17:51:23 +0000 (17:51 +0000)] 
ls now exits with status 1 if minor problem, 2 on serious trouble.

20 years ago(ls invocation): Document new "ls" exit status.
Paul Eggert [Thu, 9 Dec 2004 17:50:54 +0000 (17:50 +0000)] 
(ls invocation): Document new "ls" exit status.

20 years agols now exits with status 1 on minor problems, 2 if serious trouble.
Paul Eggert [Thu, 9 Dec 2004 17:49:45 +0000 (17:49 +0000)] 
ls now exits with status 1 on minor problems, 2 if serious trouble.

20 years agols and variants now exit with status 2 on serious trouble.
Paul Eggert [Thu, 9 Dec 2004 17:49:18 +0000 (17:49 +0000)] 
ls and variants now exit with status 2 on serious trouble.

20 years ago(LS_MINOR_PROBLEM, LS_FAILURE): New constants.
Paul Eggert [Thu, 9 Dec 2004 17:48:57 +0000 (17:48 +0000)] 
(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.

20 years agoUndo previous change.
Paul Eggert [Wed, 8 Dec 2004 23:05:42 +0000 (23:05 +0000)] 
Undo previous change.

20 years agoUndo previous change; it's already there.
Paul Eggert [Wed, 8 Dec 2004 23:05:13 +0000 (23:05 +0000)] 
Undo previous change; it's already there.

20 years ago* src/join.c (usage): Mention that input files should be sorted.
Paul Eggert [Wed, 8 Dec 2004 23:03:02 +0000 (23:03 +0000)] 
* src/join.c (usage): Mention that input files should be sorted.

20 years ago(usage): Mention that input files should be sorted.
Paul Eggert [Wed, 8 Dec 2004 23:02:45 +0000 (23:02 +0000)] 
(usage): Mention that input files should be sorted.

20 years ago* NEWS: Document new UTC+HH:MM date syntax, and put date changes together.
Paul Eggert [Wed, 8 Dec 2004 22:38:26 +0000 (22:38 +0000)] 
* NEWS: Document new UTC+HH:MM date syntax, and put date changes together.

20 years agoDocument new UTC+HH:MM date syntax, and put date changes together.
Paul Eggert [Wed, 8 Dec 2004 22:38:10 +0000 (22:38 +0000)] 
Document new UTC+HH:MM date syntax, and put date changes together.

20 years ago(Time of day items, Time zone items):
Paul Eggert [Wed, 8 Dec 2004 22:27:12 +0000 (22:27 +0000)] 
(Time of day items, Time zone items):
Describe new formats +00:00, UTC+00:00.

20 years agoAdd support for time zones like +HH:MM and UTC+HH:MM.
Paul Eggert [Wed, 8 Dec 2004 22:26:37 +0000 (22:26 +0000)] 
Add support for time zones like +HH:MM and UTC+HH:MM.

20 years ago(textint): New member "negative".
Paul Eggert [Wed, 8 Dec 2004 22:26:07 +0000 (22:26 +0000)] 
(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.

20 years ago* src/factor.c (factor): Don't list 1 as a factor of 1.
Paul Eggert [Tue, 7 Dec 2004 21:12:40 +0000 (21:12 +0000)] 
* src/factor.c (factor): Don't list 1 as a factor of 1.

20 years ago(factor): Don't list 1 as a factor of 1.
Paul Eggert [Tue, 7 Dec 2004 21:11:59 +0000 (21:11 +0000)] 
(factor): Don't list 1 as a factor of 1.
Problem reported by Thomas Folz-Donahue.

20 years ago* ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change: spurious "-l"s.
Paul Eggert [Tue, 7 Dec 2004 18:44:22 +0000 (18:44 +0000)] 
* ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change: spurious "-l"s.

20 years ago(AC_FUNC_GETMNTENT): Fix typo in previous change:
Paul Eggert [Tue, 7 Dec 2004 18:44:07 +0000 (18:44 +0000)] 
(AC_FUNC_GETMNTENT): Fix typo in previous change:
spurious "-l"s.

20 years ago*** empty log message ***
Jim Meyering [Mon, 6 Dec 2004 22:45:41 +0000 (22:45 +0000)] 
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Mon, 6 Dec 2004 22:44:39 +0000 (22:44 +0000)] 
*** empty log message ***

20 years agoSanitize environment.
Jim Meyering [Mon, 6 Dec 2004 22:42:47 +0000 (22:42 +0000)] 
Sanitize environment.
Otherwise, e.g., BLOCKSIZE=k would cause a failure.

20 years ago.
Jim Meyering [Mon, 6 Dec 2004 22:25:12 +0000 (22:25 +0000)] 
.

20 years ago* ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
Paul Eggert [Mon, 6 Dec 2004 21:56:21 +0000 (21:56 +0000)] 
* ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
in Autoconf 2.59.

20 years ago.
Jim Meyering [Mon, 6 Dec 2004 11:52:00 +0000 (11:52 +0000)] 
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 6 Dec 2004 11:50:04 +0000 (11:50 +0000)] 
*** empty log message ***

20 years agoUse AC_LIBOBJ(save-cwd).
Jim Meyering [Mon, 6 Dec 2004 10:35:27 +0000 (10:35 +0000)] 
Use AC_LIBOBJ(save-cwd).

20 years agoUse AC_LIBOBJ(chdir-long).
Jim Meyering [Mon, 6 Dec 2004 10:35:19 +0000 (10:35 +0000)] 
Use AC_LIBOBJ(chdir-long).

20 years ago(libfetish_a_SOURCES): Begin removing .c and .h file names, as they
Jim Meyering [Mon, 6 Dec 2004 10:10:19 +0000 (10:10 +0000)] 
(libfetish_a_SOURCES): Begin removing .c and .h file names, as they
are added to AC_LIBSOURCES directives in the corresponding m4/*.m4 files.

20 years ago*** empty log message ***
Jim Meyering [Mon, 6 Dec 2004 10:06:49 +0000 (10:06 +0000)] 
*** empty log message ***

20 years ago(gl_SAVE_CWD): Use AC_LIBSOURCES.
Jim Meyering [Mon, 6 Dec 2004 10:06:23 +0000 (10:06 +0000)] 
(gl_SAVE_CWD): Use AC_LIBSOURCES.

20 years ago*** empty log message ***
Jim Meyering [Mon, 6 Dec 2004 10:03:46 +0000 (10:03 +0000)] 
*** empty log message ***

20 years ago(gl_FUNC_MEMPCPY): Use AC_LIBSOURCES.
Jim Meyering [Mon, 6 Dec 2004 10:03:39 +0000 (10:03 +0000)] 
(gl_FUNC_MEMPCPY): Use AC_LIBSOURCES.

20 years ago(gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
Jim Meyering [Mon, 6 Dec 2004 10:02:18 +0000 (10:02 +0000)] 
(gl_FUNC_LCHOWN): Use AC_LIBSOURCES.

20 years ago*** empty log message ***
Jim Meyering [Mon, 6 Dec 2004 10:01:39 +0000 (10:01 +0000)] 
*** empty log message ***

20 years ago(gl_FUNC_CHDIR_LONG): Use AC_LIBSOURCES.
Jim Meyering [Mon, 6 Dec 2004 10:01:34 +0000 (10:01 +0000)] 
(gl_FUNC_CHDIR_LONG): Use AC_LIBSOURCES.

20 years ago.
Jim Meyering [Mon, 6 Dec 2004 10:00:43 +0000 (10:00 +0000)] 
.

20 years ago(gl_FUNC_OPENAT): Use AC_LIBSOURCES.
Jim Meyering [Mon, 6 Dec 2004 10:00:14 +0000 (10:00 +0000)] 
(gl_FUNC_OPENAT): Use AC_LIBSOURCES.
(gl_PREREQ_GETCWD): Use AC_REQUIRE.

20 years ago.
Jim Meyering [Sun, 5 Dec 2004 23:15:01 +0000 (23:15 +0000)] 
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 2004 23:01:57 +0000 (23:01 +0000)] 
*** empty log message ***

20 years ago(test_vector): Avoid test failure when
Jim Meyering [Sun, 5 Dec 2004 23:01:53 +0000 (23:01 +0000)] 
(test_vector): Avoid test failure when
_POSIX2_VERSION=199209 is in the environment, or when building on
e.g., OpenBSD 3.2.

20 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 2004 21:11:56 +0000 (21:11 +0000)] 
*** empty log message ***

20 years ago(unit-test): Depend on t-fpending.
Jim Meyering [Sun, 5 Dec 2004 21:11:48 +0000 (21:11 +0000)] 
(unit-test): Depend on t-fpending.
Make the target .PHONY.

20 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 2004 20:17:08 +0000 (20:17 +0000)] 
*** empty log message ***

20 years ago.
Jim Meyering [Sun, 5 Dec 2004 20:03:06 +0000 (20:03 +0000)] 
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 2004 20:02:28 +0000 (20:02 +0000)] 
*** empty log message ***

20 years ago(LDADD): Define.
Jim Meyering [Sun, 5 Dec 2004 20:02:23 +0000 (20:02 +0000)] 
(LDADD): Define.

20 years ago.
Jim Meyering [Sun, 5 Dec 2004 19:50:46 +0000 (19:50 +0000)] 
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 2004 19:38:32 +0000 (19:38 +0000)] 
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 2004 19:37:56 +0000 (19:37 +0000)] 
*** empty log message ***

20 years ago(unit-test): New target.
Jim Meyering [Sun, 5 Dec 2004 19:37:49 +0000 (19:37 +0000)] 
(unit-test): New target.
(check): Depend on it.
(noinst_PROGRAMS): Define.

20 years agoTest the __fpending function.
Jim Meyering [Sun, 5 Dec 2004 19:28:15 +0000 (19:28 +0000)] 
Test the __fpending function.
This ensures that if there is an error in the definition of the
PENDING_OUTPUT_N_BYTES expression, we'll find about it right away;
that value is used only in the rare event that close_stdout's
fclose fails with EBADF.

20 years agorevert to 1.8, now that we test the offending
Jim Meyering [Sun, 5 Dec 2004 19:27:47 +0000 (19:27 +0000)] 
revert to 1.8, now that we test the offending
condition externally (via new t-fpending.c program)

20 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 2004 18:53:40 +0000 (18:53 +0000)] 
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 2004 18:52:37 +0000 (18:52 +0000)] 
*** empty log message ***

20 years agoInclude <stdlib.h>.
Jim Meyering [Sun, 5 Dec 2004 18:52:33 +0000 (18:52 +0000)] 
Include <stdlib.h>.
(__fpending): Abort if PENDING_OUTPUT_N_BYTES is negative.
This ensures that if there is an error in the definition of the
PENDING_OUTPUT_N_BYTES expression, we'll find about it right away;
this value is used only in the rare event that close_stdout's
fclose fails with EBADF.

20 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 2004 14:23:51 +0000 (14:23 +0000)] 
*** empty log message ***

20 years ago(cut invocation): Say when --complement is useful.
Jim Meyering [Sat, 4 Dec 2004 14:23:48 +0000 (14:23 +0000)] 
(cut invocation): Say when --complement is useful.

20 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 2004 14:15:54 +0000 (14:15 +0000)] 
*** empty log message ***

20 years agoMention cut's new --complement option.
Jim Meyering [Sat, 4 Dec 2004 14:15:46 +0000 (14:15 +0000)] 
Mention cut's new --complement option.

20 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 2004 13:37:59 +0000 (13:37 +0000)] 
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 2004 13:33:11 +0000 (13:33 +0000)] 
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 2004 13:32:53 +0000 (13:32 +0000)] 
*** empty log message ***

20 years ago(complement, COMPLEMENT_OPTION): New.
Jim Meyering [Sat, 4 Dec 2004 13:32:48 +0000 (13:32 +0000)] 
(complement, COMPLEMENT_OPTION): New.
(longopts): Add --complement.
(usage): Say not that -b, -c, and -f `print' fields,
but rather that they `select' fields for printing.
Describe the new --complement option.
(mark_range_start): Extracted from set_fields.
(print_kth): Support --complement.
(compare_ranges): New function.
(set_fields): Rewrite the part that populates range_start_ht,
merging it with the part that populates printable_field.
(main): Handle --complement.

From Paolo Bonzini.

20 years ago* src/tail.c (tail_file): Set errnum to -1 if the initial "tail" failed.
Paul Eggert [Sat, 4 Dec 2004 07:03:11 +0000 (07:03 +0000)] 
* src/tail.c (tail_file): Set errnum to -1 if the initial "tail" failed.

20 years ago(tail_file): Set errnum to -1 if the initial "tail" failed.
Paul Eggert [Sat, 4 Dec 2004 07:02:35 +0000 (07:02 +0000)] 
(tail_file): Set errnum to -1 if the initial "tail" failed.

20 years agoMention copyright notice in latest checkin.
Paul Eggert [Fri, 3 Dec 2004 07:34:40 +0000 (07:34 +0000)] 
Mention copyright notice in latest checkin.

20 years agoRecent changes to save-cwd, openat.
Paul Eggert [Fri, 3 Dec 2004 07:13:31 +0000 (07:13 +0000)] 
Recent changes to save-cwd, openat.

20 years agoRegenerate.
Paul Eggert [Fri, 3 Dec 2004 07:12:46 +0000 (07:12 +0000)] 
Regenerate.

20 years agoImport from gnulib.
Paul Eggert [Fri, 3 Dec 2004 07:10:19 +0000 (07:10 +0000)] 
Import from gnulib.

20 years agoAdd copyright notice.
Paul Eggert [Fri, 3 Dec 2004 07:01:35 +0000 (07:01 +0000)] 
Add copyright notice.
(gl_FUNC_OPENAT): Require gl_USE_SYSTEM_EXTENSIONS, since Solaris
requires __EXTENSIONS__ to be defined when compiling pedantically.

20 years agoAdd copyright and authorship notice.
Paul Eggert [Fri, 3 Dec 2004 06:44:30 +0000 (06:44 +0000)] 
Add copyright and authorship notice.
(AT_FDCWD): Use the same value Solaris 9 uses.

20 years agoInclude "openat.h" before other include files.
Paul Eggert [Fri, 3 Dec 2004 06:43:59 +0000 (06:43 +0000)] 
Include "openat.h" before other include files.
Include "exitfail.h".
(openat): Remove #undef; no longer needed now that we include openat.h first.
(rpl_openat): Add comment about mode_t promotion.  Simplify
code a bit by moving initializations around.  Use exit_failure
rather than EXIT_FAILURE.

20 years agosave-cwd.c: Include "save-cwd.h" before other include files.
Paul Eggert [Fri, 3 Dec 2004 06:25:03 +0000 (06:25 +0000)] 
save-cwd.c: Include "save-cwd.h" before other include files.
(O_DIRECTORY): Remove; not needed here, since "." must be
a directory.  All uses removed.
(save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
universal on Suns, and we also need to test for IRIX.
Revamp code to use 'if' rather than '#if'.
Avoid unnecessary comparison of cwd->desc to 0.

20 years ago*** empty log message ***
Jim Meyering [Thu, 2 Dec 2004 07:47:18 +0000 (07:47 +0000)] 
*** empty log message ***

20 years agoWith using --color and with LS_COLORS saying not to color
Jim Meyering [Thu, 2 Dec 2004 07:47:14 +0000 (07:47 +0000)] 
With using --color and with LS_COLORS saying not to color
executables, don't stat every file.

(is_colored): New function.
(gobble_file): Use it.
(main): Use it here, in place of too-strict tests against NULL:
if either ORPHAN or MISSING was set to 0 from LS_COLORS, the
old test would fail.

20 years agoAssume setlocale, locale.h, and localeconv exist and work.
Paul Eggert [Thu, 2 Dec 2004 06:57:05 +0000 (06:57 +0000)] 
Assume setlocale, locale.h, and localeconv exist and work.

20 years ago(different): Assume setlocale exists.
Paul Eggert [Thu, 2 Dec 2004 06:56:28 +0000 (06:56 +0000)] 
(different): Assume setlocale exists.

20 years agoAssume locale.h exists.
Paul Eggert [Thu, 2 Dec 2004 06:56:08 +0000 (06:56 +0000)] 
Assume locale.h exists.
(HAVE_SETLOCALE): Remove.

20 years ago(C_DECIMAL_POINT): Remove. Use changed to '.'.
Paul Eggert [Thu, 2 Dec 2004 06:55:31 +0000 (06:55 +0000)] 
(C_DECIMAL_POINT): Remove.  Use changed to '.'.
Assume setlocale exists.
(thousands_sep): Renamed from th_sep.
(IS_THOUSANDS_SEP): Remove.  All uses replaced by comparisons.
(NONZERO): Parenthesize use of arg.
(numcompare): Avoid duplicate loads.  Use ISDIGIT as boolean, for
consistency.  Avoid unnecessary negation by reversing
fraccompare args.
(main): Rewrite localeconv call to match seq.c.

20 years ago(decimal_point): Treat like sort. Now char.
Paul Eggert [Thu, 2 Dec 2004 06:55:08 +0000 (06:55 +0000)] 
(decimal_point): Treat like sort.  Now char.
All uses changed.

20 years ago(keycmp): Assume setlocale exists.
Paul Eggert [Thu, 2 Dec 2004 06:54:40 +0000 (06:54 +0000)] 
(keycmp):  Assume setlocale exists.

20 years ago(compare_files): Assume setlocale exists.
Paul Eggert [Thu, 2 Dec 2004 06:54:16 +0000 (06:54 +0000)] 
(compare_files): Assume setlocale exists.

20 years ago(gl_MACROS): Assume localeconv exists.
Paul Eggert [Thu, 2 Dec 2004 06:53:49 +0000 (06:53 +0000)] 
(gl_MACROS): Assume localeconv exists.

20 years ago(gl_HUMAN): Assume locale.h and localeconv exist.
Paul Eggert [Thu, 2 Dec 2004 06:53:29 +0000 (06:53 +0000)] 
(gl_HUMAN): Assume locale.h and localeconv exist.

20 years ago(gl_HARD_LOCALE): Assume locale.h and setlocale exist.
Paul Eggert [Thu, 2 Dec 2004 06:53:00 +0000 (06:53 +0000)] 
(gl_HARD_LOCALE): Assume locale.h and setlocale exist.

20 years agoAssume <locale.h> exists.
Paul Eggert [Thu, 2 Dec 2004 06:52:10 +0000 (06:52 +0000)] 
Assume <locale.h> exists.
(human_readable): Assume localeconv exists.