Jim Meyering [Sat, 15 Jan 2005 17:19:47 +0000 (17:19 +0000)]
(isaac_seed) [HAVE_GETHRTIME]: #if-0 this block,
because just calling gethrtime evokes an `illegal instruction'
failure when compiled with Sun's c89 on Solaris 8 and 9.
Jim Meyering [Fri, 14 Jan 2005 16:30:15 +0000 (16:30 +0000)]
The test, tests/tail/f-1, failed on powerpc-apple-darwin7.7.0.
(IS_TAILABLE_FILE_TYPE): Adjust definition also to include
sockets, since that's what you get when reading from a command-line-
supplied pipe on Darwin 7.7.
(IS_PIPE_LIKE_FILE_TYPE): Define.
(main): Use new IS_PIPE_LIKE_FILE_TYPE rather than simply S_ISFIFO.
This same change is also required on NetBSD/sparc-1.5.
Reported by Adrian Bunk.
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
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.
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.
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'.
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'.
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.
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.
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.
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.