platform/upstream/coreutils.git
17 years ago* README-package-renamed-to-coreutils: Add a URL for the FAQ,
Jim Meyering [Fri, 23 Mar 2007 10:08:59 +0000 (11:08 +0100)]
* README-package-renamed-to-coreutils: Add a URL for the FAQ,
and a couple more archive links.

17 years agoPost-release version change.
Jim Meyering [Fri, 23 Mar 2007 07:22:35 +0000 (08:22 +0100)]
Post-release version change.
* NEWS: Add a line for 6.9+.
* configure.ac (AC_INIT): Set new version string.

17 years ago.prev-version: Record previous version: 6.9.
Jim Meyering [Thu, 22 Mar 2007 21:37:06 +0000 (22:37 +0100)]
.prev-version: Record previous version: 6.9.

17 years agoVersion 6.9. COREUTILS-6_9 v6.9
Jim Meyering [Thu, 22 Mar 2007 21:20:02 +0000 (22:20 +0100)]
Version 6.9.
* NEWS: Record release date and new version number.
* configure.ac (AC_INIT): New version number.

17 years ago* tests/mv/hard-3: Correct the preceding change: $3 -> $2.
Jim Meyering [Thu, 22 Mar 2007 21:11:03 +0000 (22:11 +0100)]
* tests/mv/hard-3: Correct the preceding change: $3 -> $2.

17 years ago* coreutils.texi (md5sum invocation): Document escapes in output
Eric Blake [Thu, 22 Mar 2007 20:46:54 +0000 (21:46 +0100)]
* coreutils.texi (md5sum invocation): Document escapes in output
format.  Reported by Armijn Hemel.

17 years agoImprove a test script.
Paul Eggert [Thu, 22 Mar 2007 20:29:30 +0000 (21:29 +0100)]
Improve a test script.
* tests/mv/hard-3: Check for 'ls' failure, too.
Generate more-useful debugging output when 'ls' fails.

17 years agoFix a test script not to claim an ext2 file system is of type xfs.
Jim Meyering [Wed, 21 Mar 2007 16:19:30 +0000 (17:19 +0100)]
Fix a test script not to claim an ext2 file system is of type xfs.
* tests/du/slink: When using df --local and df --type=TYPE,
test only the exit code.  Don't bother with stdout.
Prompted by a report by Thomas Schwinge of an inaccurate diagnostic.

17 years agoAdd to .cvsignore and .gitignore files.
Jim Meyering [Wed, 21 Mar 2007 14:41:58 +0000 (15:41 +0100)]
Add to .cvsignore and .gitignore files.

17 years ago* gl/lib/savewd.c: Remove this file, since the savewd_save change
Jim Meyering [Wed, 21 Mar 2007 08:09:34 +0000 (09:09 +0100)]
* gl/lib/savewd.c: Remove this file, since the savewd_save change
is now in gnulib.  The other wasn't useful.

17 years agoSkip part of this test when "." is not a local file system.
Jim Meyering [Tue, 20 Mar 2007 15:47:36 +0000 (16:47 +0100)]
Skip part of this test when "." is not a local file system.
* tests/mkdir/p-3: Likewise.

17 years ago* gl/lib/acl.c: Remove this file, now that gnulib's version subsumes it.
Jim Meyering [Tue, 20 Mar 2007 14:51:21 +0000 (15:51 +0100)]
* gl/lib/acl.c: Remove this file, now that gnulib's version subsumes it.

17 years agoFix a typo in the handling of %x and %X.
Jim Meyering [Tue, 20 Mar 2007 14:21:08 +0000 (15:21 +0100)]
Fix a typo in the handling of %x and %X.
* vasnprintf.c (VASNPRINTF): When adding 2 to buffer length,
don't double it.

17 years agoSkip part of this test when "." is not a local file system.
Jim Meyering [Tue, 20 Mar 2007 12:26:28 +0000 (13:26 +0100)]
Skip part of this test when "." is not a local file system.
* tests/install/basic-1: Otherwise, it would fail on some NFS
file systems.

17 years ago* src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD):
Paul Eggert [Tue, 20 Mar 2007 12:21:33 +0000 (13:21 +0100)]
* src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD):
Add $(LIB_ACL_TRIVIAL).

17 years agoFix a generic NFS-related test failure.
Jim Meyering [Sun, 18 Mar 2007 20:27:47 +0000 (21:27 +0100)]
Fix a generic NFS-related test failure.

* tests/mkdir/p-3: When setting up an unreadable "." in an
inaccessible parent, make the parent inaccessible *after* making "."
unreadable.  Otherwise, running "chmod a-r ." in an already-
inaccessible parent would fail on NFS with "Stale NFS file handle".

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoFix a bug in how pr -m -s works.
Jim Meyering [Sun, 18 Mar 2007 15:21:26 +0000 (16:21 +0100)]
Fix a bug in how pr -m -s works.
* NEWS: Describe how the fix affects pr.
* src/pr.c (init_parameters): The --merge (-m) option does
not imply --expand-tabs (-e), so don't set "untabify_input".
Reported by Wis Macomson.
* tests/misc/pr: New file.  Test for the above fix.
* tests/misc/Makefile.am (TESTS): Add pr.
* THANKS: Update.

17 years agoFix a silly syntax error introduced in last change.
Jim Meyering [Sat, 17 Mar 2007 12:15:17 +0000 (13:15 +0100)]
Fix a silly syntax error introduced in last change.

17 years agofix a syntax error
Jim Meyering [Sat, 17 Mar 2007 12:01:56 +0000 (13:01 +0100)]
fix a syntax error

17 years agoDetect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
Jim Meyering [Sat, 17 Mar 2007 11:54:28 +0000 (12:54 +0100)]
Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
* bootstrap: Put ""s around use of $build_aux, in case
someone uses a name containing shell meta-characters.
Reported by Alfred M. Szmidt.

17 years ago* tests/misc/tty-eof: Add shuf to the list of tested commands.
Jim Meyering [Sat, 17 Mar 2007 11:23:14 +0000 (12:23 +0100)]
* tests/misc/tty-eof: Add shuf to the list of tested commands.

17 years agoAvoid test failure on NFS-mounted Solaris ZFS file system.
Jim Meyering [Sat, 17 Mar 2007 10:44:42 +0000 (11:44 +0100)]
Avoid test failure on NFS-mounted Solaris ZFS file system.
* tests/du/basic: Skip a test if "." is on a non-local file system.

17 years agoAvoid an obscure build failure, prefer waitpid over wait.
Jim Meyering [Sat, 17 Mar 2007 09:43:04 +0000 (10:43 +0100)]
Avoid an obscure build failure, prefer waitpid over wait.
* src/install.c (strip): Use waitpid, not wait.  It's equivalent,
but feels less obsolescent.

17 years ago* bootstrap: Don't use \> in grep regexp. For HP-UX.
Jim Meyering [Sat, 17 Mar 2007 08:46:54 +0000 (09:46 +0100)]
* bootstrap: Don't use \> in grep regexp.  For HP-UX.

17 years agoBegin adding support for Solaris ZFS (4 entries per trivial ACL)
Jim Meyering [Fri, 16 Mar 2007 21:24:09 +0000 (22:24 +0100)]
Begin adding support for Solaris ZFS (4 entries per trivial ACL)
* gl/lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
(file_has_acl, copy_acl): Use it, rather than enumerating errno values.
(is_trivial_acl): New function.  Incomplete, for now.
(file_has_acl, copy_acl): Use the new function, rather than
counting the number of entries in an ACL.

17 years ago* bootstrap: Update from gnulib.
Jim Meyering [Fri, 16 Mar 2007 21:06:27 +0000 (22:06 +0100)]
* bootstrap: Update from gnulib.

17 years ago* .x-sc_prohibit_atoi_atof: Add TODO here, too.
Jim Meyering [Fri, 16 Mar 2007 21:06:04 +0000 (22:06 +0100)]
* .x-sc_prohibit_atoi_atof: Add TODO here, too.

17 years ago* src/copy.c: Include filemode.h.
Paul Eggert [Fri, 16 Mar 2007 20:41:50 +0000 (21:41 +0100)]
* src/copy.c: Include filemode.h.
(overwrite_prompt): Say "try to overwrite", not "overwrite", to
make it clearer that the attempt may fail.  Problem reported by
Dan Jacobson in:
http://lists.gnu.org/archive/html/bug-coreutils/2007-03/msg00130.html
Output symbolic mode as well as numeric.
* tests/mv/i-2 (fail): Adjust to new prompt format.

17 years agoFix manual in response to bug reports by Dan Jacobson.
Paul Eggert [Fri, 16 Mar 2007 05:30:32 +0000 (06:30 +0100)]
Fix manual in response to bug reports by Dan Jacobson.
* coreutils.texi (sort invocation): Explain numeric sorts better.
Compress self-congratulation into a simple "comparison is exact"
notice; the --general-numeric-sort option already explains the
tradeoffs.
(seq invocation): Add example of -f.

17 years agoEnforce policy: don't use *scanf functions.
Jim Meyering [Thu, 15 Mar 2007 08:19:10 +0000 (09:19 +0100)]
Enforce policy: don't use *scanf functions.
* Makefile.maint (sc_prohibit_atoi_atof): Add to regexp and diagnostic.
* .x-sc_prohibit_atoi_atof: Give stty a temporary pass.
* TODO: note that stty.c needs this small clean-up.

17 years agoPrepare to work on ACL-related failure when using Solaris ZFS.
Jim Meyering [Tue, 13 Mar 2007 18:52:13 +0000 (19:52 +0100)]
Prepare to work on ACL-related failure when using Solaris ZFS.
* gl/lib/acl.c: New file, copied from gnulib.

17 years agoWork around a failing test due to an NFS-based race condition.
Jim Meyering [Tue, 13 Mar 2007 18:51:47 +0000 (19:51 +0100)]
Work around a failing test due to an NFS-based race condition.
* tests/cp/sparse: Accept a report that the copy is *smaller*.

17 years ago* coreutils.texi (cp invocation): Mention that --preserve=timestamps
Jim Meyering [Mon, 12 Mar 2007 13:26:24 +0000 (14:26 +0100)]
* coreutils.texi (cp invocation): Mention that --preserve=timestamps
doesn't preserve time stamps on symbolic links.
Reported by Polo Talnir in <https://bugzilla.redhat.com/230866>.

17 years agoMake bootstrap.conf a tiny bit more generic.
Jim Meyering [Mon, 12 Mar 2007 08:47:36 +0000 (09:47 +0100)]
Make bootstrap.conf a tiny bit more generic.
* bootstrap.conf (XGETTEXT_OPTIONS): Exclude gettext-related .m4
files when e.g., AM_GNU_GETTEXT([external] appears in configure.ac.

17 years agoTry to fix today's NFS-related failure: Treat ESTALE like EACCES.
Jim Meyering [Sat, 10 Mar 2007 10:39:50 +0000 (11:39 +0100)]
Try to fix today's NFS-related failure: Treat ESTALE like EACCES.
* gl/lib/savewd.c: Copy this file from gnulib, then change
"errno != EACCES" to (errno != EACCES && errno != ESTALE).
The symptom was this failure in tests/install/basic-1:
ginstall: cannot create directory `rel/a': Stale NFS file handle

17 years agoThe preceding change solved part of the problem. Now ginstall fails.
Jim Meyering [Sat, 10 Mar 2007 09:36:25 +0000 (10:36 +0100)]
The preceding change solved part of the problem.  Now ginstall fails.
* tests/install/basic-1: Temporarily, don't redirect ginstall's
stderr to /dev/null, so I can see why the NFS autobuilder's NFS test
is failing.

17 years ago* tests/install/basic-1: When setting up an unreadable "." in an
Jim Meyering [Sat, 10 Mar 2007 08:53:49 +0000 (09:53 +0100)]
* tests/install/basic-1: When setting up an unreadable "." in an
inaccessible parent, make the parent inaccessible *after* making "."
unreadable.  Otherwise, running "chmod a-r ." in an already-
inaccessible parent would fail on NFS with "Stale NFS file handle".
Reported by Bob Proulx.

17 years agoremove trailing blanks
Jim Meyering [Fri, 9 Mar 2007 23:45:30 +0000 (00:45 +0100)]
remove trailing blanks

17 years ago* Makefile.maint (po-check): Exclude c99-to-c89.diff.
Jim Meyering [Fri, 9 Mar 2007 23:43:50 +0000 (00:43 +0100)]
* Makefile.maint (po-check): Exclude c99-to-c89.diff.

17 years agoMention that both Jay Soffian and Charles Randall wrote early versions
Jim Meyering [Fri, 9 Mar 2007 23:43:36 +0000 (00:43 +0100)]
Mention that both Jay Soffian and Charles Randall wrote early versions
of sort's temp-file-compression code.

17 years ago* tests/chgrp/basic: Also avoid test failures on Darwin 8.8.x (MacOS X 10.4).
Jim Meyering [Fri, 9 Mar 2007 19:09:46 +0000 (20:09 +0100)]
* tests/chgrp/basic: Also avoid test failures on Darwin 8.8.x (MacOS X 10.4).

17 years agosrc/fs.h: git-rm a generated but already-ignored file
Jim Meyering [Fri, 9 Mar 2007 14:18:17 +0000 (15:18 +0100)]
src/fs.h: git-rm a generated but already-ignored file

17 years agoAvoid test failures on Darwin 7.9.0 (MacOS X 10.3.9)
Jim Meyering [Fri, 9 Mar 2007 07:47:33 +0000 (08:47 +0100)]
Avoid test failures on Darwin 7.9.0 (MacOS X 10.3.9)
* tests/chgrp/basic: Don't let failure by chgrp to set the
group of a symlink make this test fail.  Do give a diagnostic.
In the chgrp-no-change-ctime test, add darwin7.9.0 as another
known-failing system.
When failing on some other system, print $host_triplet, too.
Reported by Peter Fales.

17 years ago* src/c99-to-c89.diff: Reflect the new c99'ism, update offsets.
Jim Meyering [Thu, 8 Mar 2007 21:09:11 +0000 (22:09 +0100)]
* src/c99-to-c89.diff: Reflect the new c99'ism, update offsets.

17 years agoAdd to .cvsignore and .gitignore files.
Jim Meyering [Thu, 8 Mar 2007 21:01:27 +0000 (22:01 +0100)]
Add to .cvsignore and .gitignore files.

17 years agoTODO: printf: support %a even when the native *printf(3) is deficient
Jim Meyering [Thu, 8 Mar 2007 21:01:05 +0000 (22:01 +0100)]
TODO: printf: support %a even when the native *printf(3) is deficient

17 years agorm without -f: give a better diagnostic when euidaccess fails.
Jim Meyering [Thu, 8 Mar 2007 09:00:55 +0000 (10:00 +0100)]
rm without -f: give a better diagnostic when euidaccess fails.
* src/remove.c (write_protected_non_symlink): Return int, not bool,
so that we can indicate failure too (as a postive error number).
(prompt): If write_protected_non_symlink fails, report that error
number and fail rather than charging ahead and removing the dubious
entry.  Redo the logic of printing a diagnostic so that we need to
invoke quote (full_filename (...)) only once.  More details at:
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9952/focus=9996>

17 years agoGeneralize a few more cvs-isms.
Jim Meyering [Thu, 8 Mar 2007 08:14:18 +0000 (09:14 +0100)]
Generalize a few more cvs-isms.
* bootstrap (checkout_only_file): Rename from CVS_only_file.
Change comments and diagnostics not to say "CVS".

17 years ago* bootstrap: Run libtool, if necessary.
Jim Meyering [Thu, 8 Mar 2007 00:06:41 +0000 (01:06 +0100)]
* bootstrap: Run libtool, if necessary.

17 years agoMake bootstrap a little more general.
Jim Meyering [Wed, 7 Mar 2007 23:23:00 +0000 (00:23 +0100)]
Make bootstrap a little more general.
* bootstrap (build_aux): Factor out/use this definition.
Formally require a "AC_CONFIG_AUX_DIR($build_aux)" line in configure.ac.
(insert_sorted_if_absent): Move function definition "up", to
precede new first use.
If $build_aux/ doesn't exist initially, create it, and
mark it as ignored.

17 years ago* vasnprintf.c (VASNPRINTF): Add missing semicolon.
Jim Meyering [Sun, 4 Mar 2007 12:03:59 +0000 (13:03 +0100)]
* vasnprintf.c (VASNPRINTF): Add missing semicolon.

17 years agoFix a bug: cp -x would fail to set mount point permissions.
Andrew Church [Sat, 3 Mar 2007 22:00:18 +0000 (23:00 +0100)]
Fix a bug: cp -x would fail to set mount point permissions.
* NEWS: mention cp -x bug fix
* src/copy.c (copy_internal): Don't return immediately after
copying a mount point that we do not intend to recurse under.
Based on a patch by Andrew Church.

17 years agopwd-unreadable-parent: Skip test on ia64/Linux, too.
Jim Meyering [Sat, 3 Mar 2007 20:38:16 +0000 (21:38 +0100)]
pwd-unreadable-parent: Skip test on ia64/Linux, too.
* tests/misc/pwd-unreadable-parent: Also skip when $REPLACE_GETCWD.
Reported by Bob Proulx.

17 years agoAdd to .cvsignore and .gitignore files.
Jim Meyering [Fri, 2 Mar 2007 13:54:52 +0000 (14:54 +0100)]
Add to .cvsignore and .gitignore files.

17 years ago* vasnprintf.c (VASNPRINTF): Remove cast of alloca return value.
Jim Meyering [Fri, 2 Mar 2007 13:33:12 +0000 (14:33 +0100)]
* vasnprintf.c (VASNPRINTF): Remove cast of alloca return value.

17 years agopwd-unreadable-parent: Skip test on non-Linux/GNU systems.
Jim Meyering [Fri, 2 Mar 2007 13:25:48 +0000 (14:25 +0100)]
pwd-unreadable-parent: Skip test on non-Linux/GNU systems.
* tests/misc/pwd-unreadable-parent: Rather than trying to decide
whether this test has a chance of succeeding, run it only when
$(host_os) is linux-gnu.  It was failing on powerpc-apple-darwin8.8.0
* tests/misc/Makefile.am (TESTS_ENVIRONMENT): Add host_os=$(host_os).

17 years ago* tests/misc/pwd-long: Also allow "+" in $PWD.
Jim Meyering [Fri, 2 Mar 2007 12:18:43 +0000 (13:18 +0100)]
* tests/misc/pwd-long: Also allow "+" in $PWD.

17 years ago* Makefile.maint (my-distcheck): Skip the c99/c89 check if there's no such .diff...
Jim Meyering [Fri, 2 Mar 2007 10:13:54 +0000 (11:13 +0100)]
* Makefile.maint (my-distcheck): Skip the c99/c89 check if there's no such .diff file.

17 years agoRemove another coreutils-ism. Formatting cleanup.
Jim Meyering [Fri, 2 Mar 2007 09:57:08 +0000 (10:57 +0100)]
Remove another coreutils-ism.  Formatting cleanup.
* Makefile.maint (my-distcheck): Update an outdated comment.
(emit_upload_commands): Use $(PACKAGE) rather than "coreutils".

17 years ago* Makefile.maint (warn_cflags): Hoist, adding "-Dlint -O".
Jim Meyering [Thu, 1 Mar 2007 10:06:58 +0000 (11:06 +0100)]
* Makefile.maint (warn_cflags): Hoist, adding "-Dlint -O".
(my-distcheck): Use the new variable, instead of too-long literal.

17 years agoMake "make syntax-check" rules less coreutils-specific.
Jim Meyering [Thu, 1 Mar 2007 10:05:35 +0000 (11:05 +0100)]
Make "make syntax-check" rules less coreutils-specific.
* Makefile.maint (sc_cast_of_x_alloc_return_value): Use CVS_LIST_EXCEPT.
(sc_cast_of_alloca_return_value): Likewise.
(sc_root_tests): Do nothing if there is no check-root target
in tests/Makefile.am.

17 years agoRun the writable-files check only for release-building targets.
Jim Meyering [Thu, 1 Mar 2007 10:02:25 +0000 (11:02 +0100)]
Run the writable-files check only for release-building targets.
* Makefile.maint (local-checks-available): Remove writable-files.
(alpha beta major): Put it here, instead.

17 years ago"make syntax-check" now runs only Makefile.cfg-selected tests
Jim Meyering [Thu, 1 Mar 2007 10:00:12 +0000 (11:00 +0100)]
"make syntax-check" now runs only Makefile.cfg-selected tests
* Makefile.maint (syntax-check-rules): Hoist this definition so that
it precedes the indirect use in the definition of $(local-check).
(local-check): Use :=, not just "=".
(syntax-check): Depend on $(local-check), not $(syntax-check-rules).

17 years agoMerge in changes from gnulib:
Jim Meyering [Thu, 1 Mar 2007 09:41:48 +0000 (10:41 +0100)]
Merge in changes from gnulib:
* vasnprintf.c: Add a comment explaining why coreutils has its own
version of this file.
Include <stdint.h>.
(SIZE_MAX): Remove definition (now, stdint.h covers that).
(EOVERFLOW): Remove definition (now done via the eoverflow module).
Update some #ifdef to #if.
Use HAVE_LONG_LONG_INT, not HAVE_LONG_LONG.
* printf-parse.c: Likewise.

17 years ago* bootstrap.conf (gnulib_modules): Replace xreadlink with
Bruno Haible [Thu, 1 Mar 2007 07:06:24 +0000 (08:06 +0100)]
* bootstrap.conf (gnulib_modules): Replace xreadlink with
xreadlink-with-size. Add xreadlink.
* src/copy.c (copy_internal): Update.
* src/ls.c (is_directory): Update.
* src/stat.c (print_stat): Update.
* src/readlink.c (main): Use the one-argument xreadlink function.

17 years ago* doc/coreutils.texi (Common options): --si outputs "M", not "MB".
Paul Eggert [Wed, 28 Feb 2007 21:25:53 +0000 (22:25 +0100)]
* doc/coreutils.texi (Common options): --si outputs "M", not "MB".
Problem reported by Philip Rowlands in
<http://lists.gnu.org/archive/html/bug-coreutils/2007-02/msg00283.html>.

17 years ago* tsearch.c: Remove unused file.
Jim Meyering [Wed, 28 Feb 2007 20:50:14 +0000 (21:50 +0100)]
* tsearch.c: Remove unused file.

17 years ago* .x-sc_file_system: Add the new test, tests/misc/df-P, to this
Jim Meyering [Wed, 28 Feb 2007 12:52:20 +0000 (13:52 +0100)]
* .x-sc_file_system: Add the new test, tests/misc/df-P, to this
list of exceptions, for the "make distcheck" sc_file_system rule.

17 years ago* Makefile.maint (gnulib_snapshot_date): Remove now-unused definition.
Jim Meyering [Wed, 28 Feb 2007 09:27:31 +0000 (10:27 +0100)]
* Makefile.maint (gnulib_snapshot_date): Remove now-unused definition.

17 years ago* tests/misc/df-P: This script *is* executable.
Jim Meyering [Wed, 28 Feb 2007 07:11:41 +0000 (08:11 +0100)]
* tests/misc/df-P: This script *is* executable.

17 years agoAdd a test for today's df -P fix.
Jim Meyering [Tue, 27 Feb 2007 18:34:51 +0000 (19:34 +0100)]
Add a test for today's df -P fix.
* tests/misc/df-P: New file.
* tests/misc/Makefile.am (TESTS): Add df-P.

17 years agoMake df -P immune to effects of e.g., the BLOCK_SIZE envvar.
Paul Eggert [Tue, 27 Feb 2007 18:12:08 +0000 (19:12 +0100)]
Make df -P immune to effects of e.g., the BLOCK_SIZE envvar.
* NEWS: With -P, the default block size and output format is not
affected by DF_BLOCK_SIZE, BLOCK_SIZE, or BLOCKSIZE.
* src/df.c (main): Implement this.
* doc/coreutils.texi (df invocation): With -P, the default block size
and output format is not affected by DF_BLOCK_SIZE, BLOCK_SIZE, or
BLOCKSIZE.

17 years ago* Makefile.maint (announcement): Adjust so that it works with
Jim Meyering [Sun, 25 Feb 2007 00:11:32 +0000 (01:11 +0100)]
* Makefile.maint (announcement): Adjust so that it works with
announce-gen's --gnulib-snapshot-time-stamp option.
Indent one of the command lines using TAB, not 8 spaces.

17 years agoPost-release version change.
Jim Meyering [Sun, 25 Feb 2007 00:10:07 +0000 (01:10 +0100)]
Post-release version change.
* NEWS: Add a line for 6.8+.
* configure.ac (AC_INIT): Set new version string.

17 years agoVersion 6.8. COREUTILS-6_8 v6.8
Jim Meyering [Sat, 24 Feb 2007 20:16:52 +0000 (21:16 +0100)]
Version 6.8.
* NEWS: Record release date and new version number.
* configure.ac (AC_INIT): New version number.

17 years agoDon't skip this test on new-enough Linux/GNU systems.
Jim Meyering [Sat, 24 Feb 2007 19:57:14 +0000 (20:57 +0100)]
Don't skip this test on new-enough Linux/GNU systems.
* tests/misc/pwd-unreadable-parent: Test $REPLACE_GETCWD = 0,
rather than for __GETCWD_PREFIX in config.h (the latter is no
longer defined, ever, due to gnulib changes).
* tests/misc/Makefile.am (TESTS_ENVIRONMENT): Define REPLACE_GETCWD.

17 years agoRemove the "gnits" option; it prohibits my using "+" as a version
Jim Meyering [Sat, 24 Feb 2007 12:57:51 +0000 (13:57 +0100)]
Remove the "gnits" option; it prohibits my using "+" as a version
string suffix, and all it does (beyond the default "gnu" option)
is to _require_ the THANKS file.
* configure.ac (AM_INIT_AUTOMAKE): Remove it.

Remove all AUTOMAKE_OPTIONS settings in Makefile.am files.
* tests/chgrp/Makefile.am, tests/chmod/Makefile.am:
* tests/chown/Makefile.am, tests/cp/Makefile.am:
* tests/du/Makefile.am, tests/expr/Makefile.am:
* tests/factor/Makefile.am, tests/general/Makefile.am:
* tests/install/Makefile.am, tests/ln/Makefile.am:
* tests/ls/Makefile.am, tests/mkdir/Makefile.am:
* tests/mv/Makefile.am, tests/readlink/Makefile.am:
* tests/rm/Makefile.am, tests/rmdir/Makefile.am:
* tests/seq/Makefile.am, tests/stty/Makefile.am:
* tests/tee/Makefile.am, tests/touch/Makefile.am:

17 years ago* README: Document the OSF/1 4.0d build failure and work-around.
Jim Meyering [Sat, 24 Feb 2007 12:49:20 +0000 (13:49 +0100)]
* README: Document the OSF/1 4.0d build failure and work-around.
Reported by Bruno Haible.

17 years ago* NEWS: Use a simple "+" suffix to denote pre-release, not "-dirty".
Jim Meyering [Sat, 24 Feb 2007 12:11:25 +0000 (13:11 +0100)]
* NEWS: Use a simple "+" suffix to denote pre-release, not "-dirty".
Nicer connotations.
* configure.ac: Use 6.7+, not 6.7-dirty.

17 years ago* NEWS: sort no longer compresses temporaries by default.
Paul Eggert [Sat, 24 Feb 2007 11:24:27 +0000 (12:24 +0100)]
* NEWS: sort no longer compresses temporaries by default.
* bootstrap.conf: Remove findprog.
* doc/coreutils.texi (sort invocation): The default is to not
compress.  Don't treat "" specially.
* src/sort.c: Don't include findprog.h.
(create_temp): Compress only if the user specified --compress-program.
* tests/misc/sort-compress: Adjusts tests to match new behavior.

17 years agoAvoid a shell syntax error, when building with an inadequate Perl.
Jim Meyering [Sat, 24 Feb 2007 08:26:56 +0000 (09:26 +0100)]
Avoid a shell syntax error, when building with an inadequate Perl.
* man/Makefile.am (.x.1): Add quotes around $(PERL) in case, since
it can expand to "/.../missing perl".

17 years ago* man/Makefile.am (.x.1): Warn when unable to update a man page.
Jim Meyering [Sat, 24 Feb 2007 08:14:56 +0000 (09:14 +0100)]
* man/Makefile.am (.x.1): Warn when unable to update a man page.
Suggestion from Bruno Haible.

17 years agoHandle better the combination of old Perl and a pre-c99 compiler.
Bruno Haible [Sat, 24 Feb 2007 07:51:19 +0000 (08:51 +0100)]
Handle better the combination of old Perl and a pre-c99 compiler.
* man/Makefile.am (.x.1): If the autoconf test has determined that
perl is missing or not a sufficient version, do nothing.

17 years ago* tests/readlink/can-e: Put the closing double-quote at the end of a
Bruno Haible [Sat, 24 Feb 2007 07:22:08 +0000 (08:22 +0100)]
* tests/readlink/can-e: Put the closing double-quote at the end of a
backquoted word, not in the middle. Works around a bug in sh on
OSF/1 4.0d.
* tests/readlink/can-f: Likewise.
* tests/readlink/can-m: Likewise.

17 years ago* tests/du/slink: Skip the test if executing on an nfsv3 file system.
Bruno Haible [Sat, 24 Feb 2007 07:20:37 +0000 (08:20 +0100)]
* tests/du/slink: Skip the test if executing on an nfsv3 file system.
This avoids a test failure at least on OSF/1 4.0d.

17 years ago* randperm.c (randperm_new): Comment: say that this function
Jim Meyering [Fri, 23 Feb 2007 21:16:12 +0000 (22:16 +0100)]
* randperm.c (randperm_new): Comment: say that this function
returns a pointer to malloc'd storage.

17 years ago* src/date.c (usage): Split a diagnostic that had grown to be
Jim Meyering [Fri, 23 Feb 2007 16:50:40 +0000 (17:50 +0100)]
* src/date.c (usage): Split a diagnostic that had grown to be
longer than the C89 maximum of 509 bytes.

17 years ago* src/date.c (usage): Mention that --rfc-3339 uses space, not 'T',
Ed Santiago [Fri, 23 Feb 2007 15:11:01 +0000 (16:11 +0100)]
* src/date.c (usage): Mention that --rfc-3339 uses space, not 'T',
for a separator.  Include sample RFC 2822 and 3339 output.

17 years agoWith -Dlint, make shuf free all heap-allocated storage.
Jim Meyering [Fri, 23 Feb 2007 14:18:16 +0000 (15:18 +0100)]
With -Dlint, make shuf free all heap-allocated storage.
* src/shuf.c (main): Move declaration of input_lines to
function scope, and initialize to NULL, so we can free it.
[lint]: Free all malloc'd memory.
* tests/misc/shuf: Also test shuf's -e and -i options.

17 years agoCorrect typo in ChangeLog entry.
Jim Meyering [Thu, 22 Feb 2007 22:51:43 +0000 (23:51 +0100)]
Correct typo in ChangeLog entry.

17 years agoMerge in a change from some other incarnation of this file (gzip?)
Jim Meyering [Thu, 22 Feb 2007 22:37:19 +0000 (23:37 +0100)]
Merge in a change from some other incarnation of this file (gzip?)
* bootstrap (gnulib_tool): Skip get_translations if there is no po/ dir.

17 years agoHonor dd's noatime flag if possible, even if not supported on build fs
Paul Eggert [Thu, 22 Feb 2007 18:09:35 +0000 (19:09 +0100)]
Honor dd's noatime flag if possible, even if not supported on build fs
* doc/coreutils.texi (dd invocation): Warn that noatime might not be
reliable.
* src/dd.c (flags, usage): Look at O_NOATIME, not
HAVE_WORKING_O_NOATIME, to decide whether to support the noatime
flag, so that dd attempts O_NOATIME even if the build file system
does not support it.  Problem reported by Jim Meyering today in
bug-coreutils.
* tests/dd/misc: Generate a warning, not a failure, if noatime
exists but fails.

17 years agoAdjust preceding change not to perform an unaligned access.
Jim Meyering [Thu, 22 Feb 2007 15:32:45 +0000 (16:32 +0100)]
Adjust preceding change not to perform an unaligned access.
* src/copy.c (copy_reg): Undo previous change.  Instead, make
it clearer that we're using a single-byte sentinel, and
[lint]: Initialize uintptr_t-1 bytes after the sentinel.
Reported by Andreas Schwab.

17 years agoPlacate valgrind, wrt ./cp --sparse=always
Jim Meyering [Thu, 22 Feb 2007 11:50:36 +0000 (12:50 +0100)]
Placate valgrind, wrt ./cp --sparse=always
* src/copy.c (copy_reg): Place the sentinel by setting a
full word's worth of bits, not just a single byte's worth.
This avoids a harmless (but distracting) case of memory being
used-uninitialized.

17 years agoAdd to .cvsignore and .gitignore files.
Jim Meyering [Wed, 21 Feb 2007 21:45:09 +0000 (22:45 +0100)]
Add to .cvsignore and .gitignore files.

17 years ago* tests/misc/date: Remove vestigial use of Data::Dumper.
Jim Meyering [Wed, 21 Feb 2007 16:26:32 +0000 (17:26 +0100)]
* tests/misc/date: Remove vestigial use of Data::Dumper.

17 years ago* src/copy.c (cached_umask): Cast -1 to mode_t to avoid a warning
Paul Eggert [Wed, 21 Feb 2007 16:23:05 +0000 (17:23 +0100)]
* src/copy.c (cached_umask): Cast -1 to mode_t to avoid a warning
about out-of-range initializer with Sun C 5.8.

17 years ago* bootstrap (CVS_only_file): Use README-hacking.
Jim Meyering [Tue, 20 Feb 2007 21:44:15 +0000 (22:44 +0100)]
* bootstrap (CVS_only_file): Use README-hacking.

17 years ago* README-hacking: Update to reflect that we now use git.
Jim Meyering [Tue, 20 Feb 2007 21:42:56 +0000 (22:42 +0100)]
* README-hacking: Update to reflect that we now use git.

17 years agoNow that we use GIT, not cvs, rename README-cvs.
Jim Meyering [Tue, 20 Feb 2007 21:37:18 +0000 (22:37 +0100)]
Now that we use GIT, not cvs, rename README-cvs.
* README-hacking: Renamed from...
* README-cvs: ...this.