platform/upstream/coreutils.git
20 years ago*** empty log message ***
Jim Meyering [Mon, 22 Mar 2004 20:00:27 +0000 (20:00 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 22:19:21 +0000 (22:19 +0000)]
*** empty log message ***

20 years ago(ds_free): Plug a small leak.
Jim Meyering [Sun, 21 Mar 2004 22:19:09 +0000 (22:19 +0000)]
(ds_free): Plug a small leak.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 19:50:46 +0000 (19:50 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 19:50:31 +0000 (19:50 +0000)]
*** empty log message ***

20 years ago(readtoken): Don't leak 64 bytes when reading an empty input stream.
Jim Meyering [Sun, 21 Mar 2004 19:50:17 +0000 (19:50 +0000)]
(readtoken): Don't leak 64 bytes when reading an empty input stream.

20 years agoAlso test with a non-regular file:
Jim Meyering [Sun, 21 Mar 2004 19:20:14 +0000 (19:20 +0000)]
Also test with a non-regular file:
--files0-from=/dev/null

20 years ago(main): whoops. don't use errno for this diagnostic:
Jim Meyering [Sun, 21 Mar 2004 19:18:24 +0000 (19:18 +0000)]
(main): whoops.  don't use errno for this diagnostic:
_("no files specified in %s"),

20 years agoAdd this comment:
Jim Meyering [Sun, 21 Mar 2004 18:50:30 +0000 (18:50 +0000)]
Add this comment:
# -*- perl -*-

20 years ago.
Jim Meyering [Sun, 21 Mar 2004 18:50:03 +0000 (18:50 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 18:49:13 +0000 (18:49 +0000)]
*** empty log message ***

20 years agoInclude <stdbool.h>.
Jim Meyering [Sun, 21 Mar 2004 18:49:06 +0000 (18:49 +0000)]
Include <stdbool.h>.
(readtoken): Use `size_t' rather than int/long.
All callers adjusted.
Use `bool' rather than `int' where appropriate.
Use memset rather than an explicit loop.
Use x2nrealloc rather than xrealloc.
Allow the use of `\0' as a delimiter.
(readtokens): Likewise.

20 years ago(readtoken, readtokens): Update prototypes.
Jim Meyering [Sun, 21 Mar 2004 18:48:54 +0000 (18:48 +0000)]
(readtoken, readtokens): Update prototypes.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 18:48:21 +0000 (18:48 +0000)]
*** empty log message ***

20 years ago(du invocation): Document new option: --file0-from=F.
Jim Meyering [Sun, 21 Mar 2004 18:48:17 +0000 (18:48 +0000)]
(du invocation): Document new option: --file0-from=F.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 18:47:48 +0000 (18:47 +0000)]
*** empty log message ***

20 years agoFix typo in comment.
Jim Meyering [Sun, 21 Mar 2004 18:47:43 +0000 (18:47 +0000)]
Fix typo in comment.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 18:46:35 +0000 (18:46 +0000)]
*** empty log message ***

20 years ago * NEWS: du accepts a new option --from0-file=FILE, where FILE
Jim Meyering [Sun, 21 Mar 2004 18:46:31 +0000 (18:46 +0000)]
* NEWS: du accepts a new option --from0-file=FILE, where FILE
contains a list of NUL-separated file names.

20 years ago(tsort): Reflect changes in use of readtoken.
Jim Meyering [Sun, 21 Mar 2004 18:45:54 +0000 (18:45 +0000)]
(tsort): Reflect changes in use of readtoken.

20 years ago(do_stdin): Reflect changes in use of readtoken.
Jim Meyering [Sun, 21 Mar 2004 18:45:37 +0000 (18:45 +0000)]
(do_stdin): Reflect changes in use of readtoken.

20 years ago(TESTS): Add files0-from.
Jim Meyering [Sun, 21 Mar 2004 18:45:17 +0000 (18:45 +0000)]
(TESTS): Add files0-from.

20 years agoNew tests, for --files0-from-F option.
Jim Meyering [Sun, 21 Mar 2004 18:45:06 +0000 (18:45 +0000)]
New tests, for --files0-from-F option.

20 years agodu accepts a new option --from0-file=FILE, where FILE contains
Jim Meyering [Sun, 21 Mar 2004 18:44:25 +0000 (18:44 +0000)]
du accepts a new option --from0-file=FILE, where FILE contains
a list of NUL-separated file names.

Include "readtokens.h".
(usage): Describe the new option, and adjust the `Usage':
with this option, no FILE may be specified on the command line.
(main): Handle the new option.

20 years ago.
Jim Meyering [Thu, 18 Mar 2004 06:24:45 +0000 (06:24 +0000)]
.

20 years ago.
Jim Meyering [Wed, 17 Mar 2004 18:44:57 +0000 (18:44 +0000)]
.

20 years ago(test_vector): New tests epoch, ns-10, ns-max32, ns-relative.
Jim Meyering [Wed, 17 Mar 2004 17:42:11 +0000 (17:42 +0000)]
(test_vector): New tests epoch, ns-10, ns-max32, ns-relative.

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 17:39:03 +0000 (17:39 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 17:38:36 +0000 (17:38 +0000)]
*** empty log message ***

20 years ago(General date syntax, Time of day items): Likewise.
Jim Meyering [Wed, 17 Mar 2004 17:37:28 +0000 (17:37 +0000)]
(General date syntax, Time of day items): Likewise.
Add copyright notice.  Change getdate to
get_date when talking about the function name.
(Seconds since the Epoch): New section, containing the time_t
info moved from Date input formats section, along with new
info about the @ syntax.  Mention negative time stamps,
fractional time stamps, and leap seconds.
(General date syntax): Modernize examples a bit to reflect new
features.
(General date syntax, Relative items in date strings):
Use ' rather than " to quote formats.
(Time of day items): Add an example with fractional seconds.
Describe fractional-second syntax.

20 years ago(touch invocation):
Jim Meyering [Wed, 17 Mar 2004 17:31:15 +0000 (17:31 +0000)]
(touch invocation):
Describe use of fractional seconds.
(date invocation, Options for date): Likewise.
(date invocation): Mention effect of LC_TIME.
(Options for date): Describe new --iso-8601=ns option.

20 years ago(touch_LDADD): New macro, since `touch' now needs clock_gettime.
Jim Meyering [Wed, 17 Mar 2004 10:14:17 +0000 (10:14 +0000)]
(touch_LDADD): New macro, since `touch' now needs clock_gettime.

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:13:50 +0000 (10:13 +0000)]
*** empty log message ***

20 years ago(gl_GETDATE): Remove time-related stuff.
Jim Meyering [Wed, 17 Mar 2004 10:13:45 +0000 (10:13 +0000)]
(gl_GETDATE): Remove time-related stuff.
Require AM_STDBOOL_H and gl_TIMESPEC instead.
Require gl_CLOCK_TIME.

20 years ago(gl_CLOCK_TIME): Require AC_GNU_SOURCE.
Jim Meyering [Wed, 17 Mar 2004 10:12:39 +0000 (10:12 +0000)]
(gl_CLOCK_TIME): Require AC_GNU_SOURCE.

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:11:12 +0000 (10:11 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:09:24 +0000 (10:09 +0000)]
*** empty log message ***

20 years agoInclude "getdate.h" first, as we can now
Jim Meyering [Wed, 17 Mar 2004 10:09:16 +0000 (10:09 +0000)]
Include "getdate.h" first, as we can now
assume C89 and don't need to worry about 'const'.
Similarly, include "unlocked-io.h" near start, not in middle.
Include <limits.h>.
(textint.value): Use long int rather than int.
(textint.digits): Use size_t rather than int.
(BILLION, LOG10_BILLION): New constants.
(parser_control): New member rel_ns.  Members day_ordinal,
time_zone, month, day, hour, minutes, rel_year, rel_month,
rel_day, rel_hour, rel_minutes, rel_seconds
are now long int, not int.  Member seconds is now struct timespec,
not int.  New member timespec_seen.  Members dates_seen, days_seen,
local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
not int.
(%union.intval): Now long int, not int.
New member timespec.
(tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
(seconds, signed_seconds, unsigned_seconds): New nonterminals.
(spec): Now is a timespec or an item list.
(timespec, items): New nonterminals.
(time, rel, relunit, number, get_date):
Add support for fractional seconds.
(time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
(gmtime, localtime, mktime): Remove decls; not needed with C89.
(to_hour): First arg is now long int, not int.
(to_year): Returns long int, not int.
Don't treat year -70 like 70.
(tm_diff): Returns long int, not int.
(lookup_word): Use bool instead of int when appropriate.
(yylex): Use size_t for count, not int.
Detect overflow when parsing large integer constants.
Add support for fractions.
(get_date): Make pointers 'const' if possible.
Use more-portable code to detect integer overflow.
(main) [TEST]: Adjust to above changes.  Test for localtime failure.
Don't use ctime; it's not reliable if the year has >4 digits.

20 years agoInclude stdbool.h, and timespec.h instead of
Jim Meyering [Wed, 17 Mar 2004 10:09:02 +0000 (10:09 +0000)]
Include stdbool.h, and timespec.h instead of
the usual <time.h> dance.
(get_date): Change signature to support fractional time stamps.
All callers changed.

20 years ago(enum Time_spec): New enum TIME_SPEC_NS.
Jim Meyering [Wed, 17 Mar 2004 10:07:19 +0000 (10:07 +0000)]
(enum Time_spec): New enum TIME_SPEC_NS.
(time_spec_string, time_spec, show_date): Support it.
(usage): Remove description of -ITIMESPEC, as it's obsolete and
confusing.  Mention --iso-8601=ns.
(batch_convert): getline returns ssize_t, not int.

20 years ago(newtime): Now an array of two timespecs, one
Jim Meyering [Wed, 17 Mar 2004 10:06:57 +0000 (10:06 +0000)]
(newtime): Now an array of two timespecs, one
for access and one for modification.
(ref_stats): Remove.
(get_reldate): Use get_date's parameter profile.
(touch, main): Adjust to above changes.
(main): Work even if tm_year == INT_MAX (so long as long int is wider).
Use gettime instead of gettimeofday, for new get_date signature.

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 15:16:37 +0000 (15:16 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Mon, 15 Mar 2004 13:06:09 +0000 (13:06 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 13:03:19 +0000 (13:03 +0000)]
*** empty log message ***

20 years ago(date invocation): Add missing `C' to %[...] range
Jim Meyering [Mon, 15 Mar 2004 13:03:13 +0000 (13:03 +0000)]
(date invocation): Add missing `C' to %[...] range
in the `Date directives:: ...' menu entry.  From Bob Proulx.

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 12:03:46 +0000 (12:03 +0000)]
*** empty log message ***

20 years ago(alpha beta major): `Make' the emit_upload_commands
Jim Meyering [Mon, 15 Mar 2004 12:03:43 +0000 (12:03 +0000)]
(alpha beta major): `Make' the emit_upload_commands
target before updating $(prev_version_file).

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 12:02:25 +0000 (12:02 +0000)]
*** empty log message ***

20 years agoAdd FIXME comment:
Jim Meyering [Mon, 15 Mar 2004 12:02:19 +0000 (12:02 +0000)]
Add FIXME comment:
The following don't have `invocation' nodes: [, pinky, shasum, uptime

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 09:46:47 +0000 (09:46 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 09:39:02 +0000 (09:39 +0000)]
*** empty log message ***

20 years agoNew file, to test for just-fixed bug in date.
Jim Meyering [Mon, 15 Mar 2004 09:11:20 +0000 (09:11 +0000)]
New file, to test for just-fixed bug in date.
See today's change in lib/getdate.y.

20 years ago(TESTS): Add date-sec.
Jim Meyering [Mon, 15 Mar 2004 09:02:50 +0000 (09:02 +0000)]
(TESTS): Add date-sec.

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 08:37:07 +0000 (08:37 +0000)]
*** empty log message ***

20 years ago`date --date="21:04 +0100" +%S' would print the seconds value
Jim Meyering [Mon, 15 Mar 2004 08:37:03 +0000 (08:37 +0000)]
`date --date="21:04 +0100" +%S' would print the seconds value
from the current time, rather than `00'.

For a date string like `10:23 +0100',
set the number of seconds to zero.  Reported by Marc Haber.

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 08:35:28 +0000 (08:35 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 14 Mar 2004 16:09:32 +0000 (16:09 +0000)]
*** empty log message ***

20 years ago(print_changelog_deltas): Use `.sig' suffix for
Jim Meyering [Sun, 14 Mar 2004 16:09:28 +0000 (16:09 +0000)]
(print_changelog_deltas): Use `.sig' suffix for
signature files, not `.asc'.  Reported by angico@yahoo.com.

20 years agobump version to 5.3.0
Jim Meyering [Sat, 13 Mar 2004 08:10:53 +0000 (08:10 +0000)]
bump version to 5.3.0

20 years ago*** empty log message ***
Jim Meyering [Sat, 13 Mar 2004 08:10:13 +0000 (08:10 +0000)]
*** empty log message ***

20 years ago(do_copy): Tweak wording in a diagnostic.
Jim Meyering [Sat, 13 Mar 2004 08:09:58 +0000 (08:09 +0000)]
(do_copy): Tweak wording in a diagnostic.
Suggestion from Karl Berry.
Include "quoatearg.h".
(do_copy): Use quotearg_colon (not quote) for diagnostics
that begin with `"%s:'.

20 years ago*** empty log message ***
Jim Meyering [Sat, 13 Mar 2004 07:58:55 +0000 (07:58 +0000)]
*** empty log message ***

20 years ago(usage): Specify that nl uses _basic_ regular expressions.
Jim Meyering [Sat, 13 Mar 2004 07:58:45 +0000 (07:58 +0000)]
(usage): Specify that nl uses _basic_ regular expressions.

20 years ago.
Jim Meyering [Fri, 12 Mar 2004 19:19:50 +0000 (19:19 +0000)]
.

20 years ago*** empty log message *** COREUTILS-5_2_1 v5.2.1
Jim Meyering [Fri, 12 Mar 2004 19:04:31 +0000 (19:04 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 19:03:46 +0000 (19:03 +0000)]
*** empty log message ***

20 years agoExit 77 (not 1) if we can't set up for the test.
Jim Meyering [Fri, 12 Mar 2004 19:03:07 +0000 (19:03 +0000)]
Exit 77 (not 1) if we can't set up for the test.
This was triggered on a Linux-2.2.19 system using a file system
NFS-mounted from some sort of Sun.

20 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 16:00:59 +0000 (16:00 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 16:00:41 +0000 (16:00 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 15:59:20 +0000 (15:59 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 14:07:14 +0000 (14:07 +0000)]
*** empty log message ***

20 years agoSync with autoconf.
Jim Meyering [Fri, 12 Mar 2004 14:06:44 +0000 (14:06 +0000)]
Sync with autoconf.

20 years ago.
Jim Meyering [Fri, 12 Mar 2004 13:59:39 +0000 (13:59 +0000)]
.

20 years ago.
Jim Meyering [Fri, 12 Mar 2004 13:55:52 +0000 (13:55 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 13:55:28 +0000 (13:55 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 12:04:57 +0000 (12:04 +0000)]
*** empty log message ***

20 years ago(TESTS): Add part-hardlink.
Jim Meyering [Fri, 12 Mar 2004 12:04:15 +0000 (12:04 +0000)]
(TESTS): Add part-hardlink.

20 years ago# Before coreutils-5.2.1, this test would fail.
Jim Meyering [Fri, 12 Mar 2004 12:04:02 +0000 (12:04 +0000)]
# Before coreutils-5.2.1, this test would fail.

20 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 11:53:57 +0000 (11:53 +0000)]
*** empty log message ***

20 years ago(src_to_dest_lookup): Add prototype.
Jim Meyering [Fri, 12 Mar 2004 11:53:46 +0000 (11:53 +0000)]
(src_to_dest_lookup): Add prototype.

20 years ago(src_to_dest_lookup): New function.
Jim Meyering [Fri, 12 Mar 2004 11:53:29 +0000 (11:53 +0000)]
(src_to_dest_lookup): New function.

20 years agoSometimes, when source and destination partition are different,
Jim Meyering [Fri, 12 Mar 2004 11:53:18 +0000 (11:53 +0000)]
Sometimes, when source and destination partition are different,
mv mistakenly fails to preserve a hard link.  Reported by IIDA Yosiaki.

When moving a set of N hard-linked files between
partitions, via two or more command line arguments where the
command line argument containing the Nth link contains no other
link to that same file, mv would mistakenly copy the file, rather
than hard-linking it to the other(s).  That happens because when the
final link is processed, its link count has been reduced to 1 since
the other links have been `copied' to the destination partition
and the source links have been removed.
(copy_internal): When in move mode, use the source dev/inode
pair to look up destination name even when st_nlink == 1.

20 years ago.
Jim Meyering [Thu, 11 Mar 2004 18:58:29 +0000 (18:58 +0000)]
.

20 years ago.
Jim Meyering [Thu, 11 Mar 2004 09:25:53 +0000 (09:25 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Thu, 11 Mar 2004 09:25:40 +0000 (09:25 +0000)]
*** empty log message ***

20 years agoAlso convert sizes in the 70-79 kB range,
Jim Meyering [Wed, 10 Mar 2004 18:06:04 +0000 (18:06 +0000)]
Also convert sizes in the 70-79 kB range,
so that this test works with SELinux-enable systems.
Based on a patch from Tim Waugh.

20 years ago*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 18:05:56 +0000 (18:05 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:57:00 +0000 (17:57 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:53:57 +0000 (17:53 +0000)]
*** empty log message ***

20 years ago(Sorting the output): Remove description of
Jim Meyering [Wed, 10 Mar 2004 17:53:50 +0000 (17:53 +0000)]
(Sorting the output): Remove description of
ls's --sort=directory option.  ls doesn't accept that option, yet.

20 years ago*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:53:00 +0000 (17:53 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Wed, 10 Mar 2004 17:40:00 +0000 (17:40 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:39:40 +0000 (17:39 +0000)]
*** empty log message ***

20 years ago(invalid-j): New partial test for the above fix.
Jim Meyering [Wed, 10 Mar 2004 17:39:34 +0000 (17:39 +0000)]
(invalid-j): New partial test for the above fix.

20 years ago*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 10:44:35 +0000 (10:44 +0000)]
*** empty log message ***

20 years ago`join -1 x' would give a misleading diagnostic
Jim Meyering [Wed, 10 Mar 2004 10:44:31 +0000 (10:44 +0000)]
`join -1 x' would give a misleading diagnostic

(string_to_join_field): Report that a non-numeric field
number is invalid, rather than `so large that it is not representable'.

20 years ago*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 10:08:21 +0000 (10:08 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Wed, 10 Mar 2004 09:57:29 +0000 (09:57 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 09:51:30 +0000 (09:51 +0000)]
*** empty log message ***

20 years ago(cp invocation): Improve description of cp's --sparse=WHEN option.
Jim Meyering [Wed, 10 Mar 2004 09:51:26 +0000 (09:51 +0000)]
(cp invocation): Improve description of cp's --sparse=WHEN option.