platform/upstream/coreutils.git
19 years ago(toarith): Rewrite to detect/diagnose integer overflow,
Jim Meyering [Fri, 14 Jan 2005 14:15:25 +0000 (14:15 +0000)]
(toarith): Rewrite to detect/diagnose integer overflow,
rather than suffering silently.
Before, expr would silently overflow and wrap around:
  $ expr 9223372036854775808 = 0   # $(echo 2^63|bc)
  1
Now it detects the problem and exits nonzero:
  $ ./expr $(echo 2^63|bc) = 0
  ./expr: 9223372036854775808: integer is too large

19 years ago*** empty log message ***
Jim Meyering [Fri, 14 Jan 2005 13:39:51 +0000 (13:39 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Fri, 14 Jan 2005 13:33:32 +0000 (13:33 +0000)]
*** empty log message ***

19 years agoWork around tests/touch/empty-file failure on a system
Jim Meyering [Fri, 14 Jan 2005 13:33:26 +0000 (13:33 +0000)]
Work around tests/touch/empty-file failure on a system
(sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
NULL-means-set-to-current-time semantics.
Remove temporary file immediately, rather than waiting
for configure's at-exit trap code to do it.

19 years ago*** empty log message ***
Jim Meyering [Fri, 14 Jan 2005 10:39:15 +0000 (10:39 +0000)]
*** empty log message ***

19 years ago(id_gn): Exit 77, not 1, for a test-framework
Jim Meyering [Fri, 14 Jan 2005 10:39:05 +0000 (10:39 +0000)]
(id_gn): Exit 77, not 1, for a test-framework
failure, so that doesn't cause `make check' to stop.  Nelson Beebe
reported that this test would fail with this diagnostic
`cannot find name for group ID 10' on one of his systems.

19 years ago*** empty log message ***
Jim Meyering [Thu, 13 Jan 2005 23:33:22 +0000 (23:33 +0000)]
*** empty log message ***

19 years ago(is_int): Don't overflow when evaluating integer constants.
Jim Meyering [Thu, 13 Jan 2005 23:27:34 +0000 (23:27 +0000)]
(is_int): Don't overflow when evaluating integer constants.
Before, ./test $(echo 2^64|bc) -eq 0 && echo FAIL would print `FAIL'.

19 years ago*** empty log message ***
Jim Meyering [Thu, 13 Jan 2005 22:17:33 +0000 (22:17 +0000)]
*** empty log message ***

19 years ago(validate): Add code (if-0'd out) to detect
Jim Meyering [Thu, 13 Jan 2005 22:16:29 +0000 (22:16 +0000)]
(validate): Add code (if-0'd out) to detect
names of temporary files that would clash on 8.3 file systems.

19 years ago*** empty log message ***
Jim Meyering [Thu, 13 Jan 2005 22:14:03 +0000 (22:14 +0000)]
*** empty log message ***

19 years ago(run_tests): Add code (if-0'd out) to detect
Jim Meyering [Thu, 13 Jan 2005 22:13:53 +0000 (22:13 +0000)]
(run_tests): Add code (if-0'd out) to detect
names of temporary files that would clash on 8.3 file systems.

19 years ago*** empty log message ***
Jim Meyering [Wed, 12 Jan 2005 15:27:40 +0000 (15:27 +0000)]
*** empty log message ***

19 years ago(repeat-000): Rename to `repeat-zeros' for the same reason.
Jim Meyering [Wed, 12 Jan 2005 15:27:28 +0000 (15:27 +0000)]
(repeat-000): Rename to `repeat-zeros' for the same reason.

19 years agoShorten test names to accommodate 8.3 systems.
Jim Meyering [Wed, 12 Jan 2005 15:18:54 +0000 (15:18 +0000)]
Shorten test names to accommodate 8.3 systems.

19 years agoShorten test names to accommodate 8.3 systems.
Jim Meyering [Wed, 12 Jan 2005 15:18:12 +0000 (15:18 +0000)]
Shorten test names to accommodate 8.3 systems.

19 years agoregenerate
Jim Meyering [Wed, 12 Jan 2005 15:01:10 +0000 (15:01 +0000)]
regenerate

19 years ago(repeat-bigC): Change test name from
Jim Meyering [Wed, 12 Jan 2005 15:00:51 +0000 (15:00 +0000)]
(repeat-bigC): Change test name from
`repeat-Compl', to avoid 8.3 conflict with `repeat-compl'.

19 years ago*** empty log message ***
Jim Meyering [Wed, 12 Jan 2005 15:00:40 +0000 (15:00 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Wed, 12 Jan 2005 14:59:48 +0000 (14:59 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Tue, 11 Jan 2005 21:40:36 +0000 (21:40 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 11 Jan 2005 17:23:24 +0000 (17:23 +0000)]
*** empty log message ***

19 years agoUpdate version to 5.3.1.
Jim Meyering [Tue, 11 Jan 2005 17:22:42 +0000 (17:22 +0000)]
Update version to 5.3.1.

19 years ago*** empty log message ***
Jim Meyering [Tue, 11 Jan 2005 17:03:30 +0000 (17:03 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Tue, 11 Jan 2005 17:02:57 +0000 (17:02 +0000)]
*** empty log message ***

19 years ago(obs-ovflo): New test for overflow.
Jim Meyering [Tue, 11 Jan 2005 17:01:35 +0000 (17:01 +0000)]
(obs-ovflo): New test for overflow.

19 years ago(main): Check for overflow in tabstop values
Jim Meyering [Tue, 11 Jan 2005 16:54:02 +0000 (16:54 +0000)]
(main): Check for overflow in tabstop values
specified via the obsolete form.  E.g., now this command fails:
_POSIX2_VERSION=1 ./expand -$(echo '2^64+1'|bc)
Before it would act like `_POSIX2_VERSION=1 ./expand -1'.

19 years ago(main): Check for overflow in tabstop values
Jim Meyering [Tue, 11 Jan 2005 16:53:24 +0000 (16:53 +0000)]
(main): Check for overflow in tabstop values
specified via the obsolete form.  E.g., now this command fails:
_POSIX2_VERSION=1 ./unexpand -$(echo '2^64+1'|bc)
Before it would act like `_POSIX2_VERSION=1 ./unexpand -1'.

19 years ago(add_tab_stop): Properly diagnose a tabstop list with decreasing values.
Jim Meyering [Tue, 11 Jan 2005 16:52:47 +0000 (16:52 +0000)]
(add_tab_stop): Properly diagnose a tabstop list with decreasing values.

19 years ago*** empty log message ***
Jim Meyering [Tue, 11 Jan 2005 16:51:08 +0000 (16:51 +0000)]
*** empty log message ***

19 years ago(all_programs): Account for $(EXEEXT).
Jim Meyering [Tue, 11 Jan 2005 16:51:03 +0000 (16:51 +0000)]
(all_programs): Account for $(EXEEXT).

19 years ago(check-README, check-AUTHORS): Account for $(EXEEXT).
Jim Meyering [Tue, 11 Jan 2005 16:50:27 +0000 (16:50 +0000)]
(check-README, check-AUTHORS): Account for $(EXEEXT).

19 years agoUpdate copyright date.
Paul Eggert [Mon, 10 Jan 2005 18:12:35 +0000 (18:12 +0000)]
Update copyright date.

19 years agoUpdate copyright date.
Paul Eggert [Mon, 10 Jan 2005 18:11:57 +0000 (18:11 +0000)]
Update copyright date.

19 years agoRespond to POSIX interpretations about pathchk -p dated 2005-01-06.
Paul Eggert [Mon, 10 Jan 2005 18:09:43 +0000 (18:09 +0000)]
Respond to POSIX interpretations about pathchk -p dated 2005-01-06.

19 years agoAdd tests for empty file names and pathchk -P.
Paul Eggert [Mon, 10 Jan 2005 18:09:22 +0000 (18:09 +0000)]
Add tests for empty file names and pathchk -P.

19 years ago(PORTABILITY_OPTION): New constant.
Paul Eggert [Mon, 10 Jan 2005 18:09:02 +0000 (18:09 +0000)]
(PORTABILITY_OPTION): New constant.
(longopts, usage, main, validate_file_name):
Add support for new -P option.
Reject empty file names (unless -p is not specified and the
current system allows empty file names).
Change --portability so that is now equivalent to -p -P.
Don't test whether file name is too long, if it is known to exist.
(no_leading_hyphen): New function.

19 years agoDocument changes responding to POSIX interpretations about pathchk -p
Paul Eggert [Mon, 10 Jan 2005 18:08:12 +0000 (18:08 +0000)]
Document changes responding to POSIX interpretations about pathchk -p
dated 2005-01-06.

19 years agoDocument changes responding to POSIX interpretations about pathchk -p
Paul Eggert [Mon, 10 Jan 2005 18:07:42 +0000 (18:07 +0000)]
Document changes responding to POSIX interpretations about pathchk -p
dated 2005-01-06.

19 years ago*** empty log message ***
Jim Meyering [Sun, 9 Jan 2005 19:45:00 +0000 (19:45 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Sat, 8 Jan 2005 20:45:23 +0000 (20:45 +0000)]
.

19 years ago*** empty log message *** COREUTILS-5_3_0 v5.3.0
Jim Meyering [Sat, 8 Jan 2005 20:28:51 +0000 (20:28 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Sat, 8 Jan 2005 20:28:32 +0000 (20:28 +0000)]
.

19 years agoregenerate
Jim Meyering [Sat, 8 Jan 2005 20:27:43 +0000 (20:27 +0000)]
regenerate

19 years ago`pr --columns=N' was not equivalent to `pr -N' when also using
Jim Meyering [Sat, 8 Jan 2005 12:01:40 +0000 (12:01 +0000)]
`pr --columns=N' was not equivalent to `pr -N' when also using
either -s or -w.

(main): Set `explicit_columns' for --columns=N,
not just for -N.  This bug has existed since the introduction
of the --columns=N option on 1998-08-15.

19 years ago(main): Check for column count overflow with usages like "pr -2147483648".
Jim Meyering [Sat, 8 Jan 2005 12:00:54 +0000 (12:00 +0000)]
(main): Check for column count overflow with usages like "pr -2147483648".

19 years ago*** empty log message ***
Jim Meyering [Sat, 8 Jan 2005 09:42:39 +0000 (09:42 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 8 Jan 2005 09:42:06 +0000 (09:42 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 8 Jan 2005 09:35:17 +0000 (09:35 +0000)]
*** empty log message ***

19 years ago(test_vector): For each -N test, automatically
Jim Meyering [Sat, 8 Jan 2005 09:35:04 +0000 (09:35 +0000)]
(test_vector): For each -N test, automatically
create a new test vector using --columns=N.

19 years ago*** empty log message ***
Jim Meyering [Sat, 8 Jan 2005 09:00:08 +0000 (09:00 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 8 Jan 2005 08:46:10 +0000 (08:46 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Fri, 7 Jan 2005 20:11:37 +0000 (20:11 +0000)]
.

19 years agoCorrect last change: s/zero/no/ From Paul Jarc.
Jim Meyering [Fri, 7 Jan 2005 20:10:15 +0000 (20:10 +0000)]
Correct last change: s/zero/no/  From Paul Jarc.

19 years ago*** empty log message ***
Jim Meyering [Fri, 7 Jan 2005 18:25:47 +0000 (18:25 +0000)]
*** empty log message ***

19 years ago(sort invocation): Specify that a string of zero digits is interpreted as 0.
Jim Meyering [Fri, 7 Jan 2005 18:24:23 +0000 (18:24 +0000)]
(sort invocation): Specify that a string of zero digits is interpreted as 0.

19 years ago*** empty log message ***
Jim Meyering [Fri, 7 Jan 2005 18:23:57 +0000 (18:23 +0000)]
*** empty log message ***

19 years ago(init_fps): Use xnmalloc, rather than xmalloc.
Jim Meyering [Fri, 7 Jan 2005 17:16:50 +0000 (17:16 +0000)]
(init_fps): Use xnmalloc, rather than xmalloc.

19 years ago.
Jim Meyering [Fri, 7 Jan 2005 10:15:55 +0000 (10:15 +0000)]
.

19 years agoInclude today's date.
Jim Meyering [Fri, 7 Jan 2005 09:57:45 +0000 (09:57 +0000)]
Include today's date.

19 years agoRemove suppression-related options.
Jim Meyering [Fri, 7 Jan 2005 09:54:52 +0000 (09:54 +0000)]
Remove suppression-related options.
Add --track-fds=yes.

19 years ago*** empty log message ***
Jim Meyering [Thu, 6 Jan 2005 16:44:02 +0000 (16:44 +0000)]
*** empty log message ***

19 years agoList the precise HP-UX version numbers that are affected.
Jim Meyering [Thu, 6 Jan 2005 16:44:00 +0000 (16:44 +0000)]
List the precise HP-UX version numbers that are affected.

19 years ago*** empty log message ***
Jim Meyering [Thu, 6 Jan 2005 08:12:32 +0000 (08:12 +0000)]
*** empty log message ***

19 years ago(sc_changelog): Specify find's `-maxdepth 2'
Jim Meyering [Thu, 6 Jan 2005 08:12:28 +0000 (08:12 +0000)]
(sc_changelog): Specify find's `-maxdepth 2'
predicate before `-name ChangeLog' to avoid a harmless warning
from find-4.2.10.

19 years ago*** empty log message ***
Jim Meyering [Wed, 5 Jan 2005 22:08:53 +0000 (22:08 +0000)]
*** empty log message ***

19 years agoPunt on the uptime test, since it fails when
Jim Meyering [Wed, 5 Jan 2005 22:08:48 +0000 (22:08 +0000)]
Punt on the uptime test, since it fails when
it can't get boot time, and I don't want that to stop `make check'.

19 years ago*** empty log message ***
Jim Meyering [Wed, 5 Jan 2005 08:26:58 +0000 (08:26 +0000)]
*** empty log message ***

19 years ago(sc_root_tests): New rule.
Jim Meyering [Wed, 5 Jan 2005 08:25:51 +0000 (08:25 +0000)]
(sc_root_tests): New rule.
(syntax-check-rules): Add it to the list.

19 years ago*** empty log message ***
Jim Meyering [Wed, 5 Jan 2005 08:01:09 +0000 (08:01 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Wed, 5 Jan 2005 07:56:58 +0000 (07:56 +0000)]
*** empty log message ***

19 years ago du --exclude=P now compares pattern P against the entire name
Jim Meyering [Wed, 5 Jan 2005 07:56:45 +0000 (07:56 +0000)]
  du --exclude=P now compares pattern P against the entire name
  of each file, rather than just the final component.

19 years ago*** empty log message ***
Jim Meyering [Wed, 5 Jan 2005 07:53:15 +0000 (07:53 +0000)]
*** empty log message ***

19 years agoAdd a test for today's fix:
Jim Meyering [Wed, 5 Jan 2005 07:53:11 +0000 (07:53 +0000)]
Add a test for today's fix:

  (process_file): Evaluate exclusion rules against
  the entire file name, not just the last component.

19 years ago*** empty log message ***
Jim Meyering [Wed, 5 Jan 2005 07:47:52 +0000 (07:47 +0000)]
*** empty log message ***

19 years ago(process_file): Evaluate exclusion rules against
Jim Meyering [Wed, 5 Jan 2005 07:47:45 +0000 (07:47 +0000)]
(process_file): Evaluate exclusion rules against
the entire file name, not just the last component.

19 years ago*** empty log message ***
Jim Meyering [Wed, 5 Jan 2005 07:46:58 +0000 (07:46 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jan 2005 19:40:14 +0000 (19:40 +0000)]
*** empty log message ***

19 years ago* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
Paul Eggert [Tue, 4 Jan 2005 18:49:44 +0000 (18:49 +0000)]
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
definitions to be after all include files, to avoid collisions.

19 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jan 2005 18:29:42 +0000 (18:29 +0000)]
*** empty log message ***

19 years ago * coreutils.texi (shred invocation): Clarify that shred works fine
Jim Meyering [Tue, 4 Jan 2005 18:29:38 +0000 (18:29 +0000)]
* coreutils.texi (shred invocation): Clarify that shred works fine
with journaled file systems that are configured not to journal
file system data.  Also mention BFS and NTFS.

19 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jan 2005 11:21:41 +0000 (11:21 +0000)]
*** empty log message ***

19 years agoChange one-line summary to reflect that shred does
Jim Meyering [Tue, 4 Jan 2005 11:21:36 +0000 (11:21 +0000)]
Change one-line summary to reflect that shred does
not remove files by default.

19 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jan 2005 11:21:08 +0000 (11:21 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Tue, 4 Jan 2005 10:19:34 +0000 (10:19 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jan 2005 10:02:27 +0000 (10:02 +0000)]
*** empty log message ***

19 years ago * README: Request VERBOSE=yes output when reporting test failures.
Jim Meyering [Tue, 4 Jan 2005 10:01:24 +0000 (10:01 +0000)]
* README: Request VERBOSE=yes output when reporting test failures.
Other minor changes.

19 years ago.
Jim Meyering [Tue, 4 Jan 2005 09:43:18 +0000 (09:43 +0000)]
.

19 years ago(check-root): Update.
Jim Meyering [Tue, 4 Jan 2005 09:41:14 +0000 (09:41 +0000)]
(check-root): Update.

19 years ago(gl_FUNC_CHOWN): When cross-compiling, assume that chown
Jim Meyering [Tue, 4 Jan 2005 09:40:23 +0000 (09:40 +0000)]
(gl_FUNC_CHOWN): When cross-compiling, assume that chown
is sane and DOES follow symlinks.  Besides, testing 20 different
systems found no broken chown implementations.

19 years ago(gl_FUNC_CHOWN): When cross-compiling, assume that chown
Jim Meyering [Tue, 4 Jan 2005 09:39:04 +0000 (09:39 +0000)]
(gl_FUNC_CHOWN): When cross-compiling, assume that chown
is sane and DOES follow symlinks.  Besides, testing 20 different
systems found no broken chown implementations.

19 years agoremove FIXME comments
Jim Meyering [Tue, 4 Jan 2005 09:00:35 +0000 (09:00 +0000)]
remove FIXME comments

19 years agoremove FIXME comments
Jim Meyering [Tue, 4 Jan 2005 08:59:35 +0000 (08:59 +0000)]
remove FIXME comments

19 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jan 2005 08:51:23 +0000 (08:51 +0000)]
*** empty log message ***

19 years ago[DEFAULT_ALIGNMENT]: Use an intermediate type to simplify
Jim Meyering [Tue, 4 Jan 2005 08:51:18 +0000 (08:51 +0000)]
[DEFAULT_ALIGNMENT]: Use an intermediate type to simplify
offsetof() macro construct to avoid compile failure with native HP-UX
11.0 ANSI C compiler.

19 years agoRegenerate.
Paul Eggert [Mon, 3 Jan 2005 23:50:12 +0000 (23:50 +0000)]
Regenerate.

19 years agoUpdate serial number and copyright date.
Paul Eggert [Mon, 3 Jan 2005 23:45:48 +0000 (23:45 +0000)]
Update serial number and copyright date.

19 years ago* m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
Paul Eggert [Mon, 3 Jan 2005 23:43:39 +0000 (23:43 +0000)]
* m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
* m4/ullong_max.m4: New file.
* src/system.h: Undo previous change; we now use Autoconf.

19 years ago*** empty log message ***
Jim Meyering [Mon, 3 Jan 2005 21:25:21 +0000 (21:25 +0000)]
*** empty log message ***

19 years agoDon't set rows or columns to zero, to avoid
Jim Meyering [Mon, 3 Jan 2005 21:25:13 +0000 (21:25 +0000)]
Don't set rows or columns to zero, to avoid
a bug in the TIOCGWINSZ ioctl on at least Solaris5.9 systems.  Setting
either (or both) to zero would succeed, but subsequent `stty size'
would say `no size information for this device' due to the ioctl
failing with EINVAL.