platform/upstream/coreutils.git
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.

17 years ago* src/env.c (main): When invoked with no arguments (i.e. when printing
Jim Meyering [Tue, 20 Feb 2007 16:23:51 +0000 (17:23 +0100)]
* src/env.c (main): When invoked with no arguments (i.e. when printing
the environment), use a local variable to iterate through the global
"environ" array, rather than "environ" itself.  This is solely to
avoid changing the environment for an LD_PRELOAD-substituted "puts"
or "exit" function.  Tiny patch by Harvey Eneman.  See
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/9735>.
* THANKS: Update.

17 years ago* bootstrap: Move definitions of temporary directory names and the
Jim Meyering [Tue, 20 Feb 2007 16:20:22 +0000 (17:20 +0100)]
* bootstrap: Move definitions of temporary directory names and the
new bt_regex "up" to precede all uses, so it's clearer what their
scope is.  Also, use [.], rather than \\., since the former works
even if eval'd.

17 years ago* bootstrap: Remove occurrences of $bt (._bootmp) from lib/Makefile.
Jim Meyering [Tue, 20 Feb 2007 16:08:10 +0000 (17:08 +0100)]
* bootstrap: Remove occurrences of $bt (._bootmp) from lib/Makefile.
Based on the bison 2007-02-19 change by Joel E. Denny.

17 years ago* NEWS: sort now uses a --compress-program option rather than
Paul Eggert [Mon, 19 Feb 2007 21:11:18 +0000 (22:11 +0100)]
* NEWS: sort now uses a --compress-program option rather than
an environment variable.
* doc/coreutils.texi (sort invocation): Document this.
* src/sort.c (usage): Likewise.
(COMPRESS_PROGRAM_OPTION): New const.
(long_options, create_temp, main): Support new option.
* tests/misc/sort-compress: Test it.

17 years ago* bootstrap: Fix typo s/dowloading/downloading/ in --help output.
Jim Meyering [Mon, 19 Feb 2007 17:44:21 +0000 (18:44 +0100)]
* bootstrap: Fix typo s/dowloading/downloading/ in --help output.

17 years agoAdd to .cvsignore and .gitignore files.
Jim Meyering [Sun, 18 Feb 2007 21:40:52 +0000 (22:40 +0100)]
Add to .cvsignore and .gitignore files.

17 years agoRely on gnulib-generated stdlib.h, not exit.h.
Jim Meyering [Sun, 18 Feb 2007 21:34:37 +0000 (22:34 +0100)]
Rely on gnulib-generated stdlib.h, not exit.h.
* src/system.h: Don't include exit.h, now that it's subsumed
by the gnulib-generated stdlib.h.
* lib/xfts.c: Include <stdlib.h> rather than exit.h, now that stdlib.h

17 years ago* tests/rm/fail-eacces: Skip this test when running as root.
Jim Meyering [Sun, 18 Feb 2007 16:40:06 +0000 (17:40 +0100)]
* tests/rm/fail-eacces: Skip this test when running as root.
Reported by Matthew Woehlke.

17 years ago* bootstrap: Use "._bootmp" as the temporary directory name,
Jim Meyering [Sun, 18 Feb 2007 11:06:01 +0000 (12:06 +0100)]
* bootstrap: Use "._bootmp" as the temporary directory name,
not ".#bootmp".  The latter's "#" caused trouble with the new,
gnulib-added "LINK_WARNING_H = $(top_srcdir)/.#bootmp/..." line.

17 years ago* bootstrap.conf (gnulib_modules): Add c-strcase. Remove strcase.
Paul Eggert [Thu, 15 Feb 2007 07:16:30 +0000 (08:16 +0100)]
* bootstrap.conf (gnulib_modules): Add c-strcase.  Remove strcase.
* src/dircolors.c: Include c-strcase.h.
(dc_parse_stream): Use c_strcasecmp rather than
strcasecmp to avoid unreliable results in locales like Turkish
where strcasecmp is incompatible with the C locale.

17 years agoAlso check for and print stderr output, in case a program fails.
Jim Meyering [Tue, 13 Feb 2007 21:27:27 +0000 (22:27 +0100)]
Also check for and print stderr output, in case a program fails.
* tests/misc/tty-eof: Occasionally (not reproducible), this
test would fail, with one or more programs exiting nonzero, e.g.,
tty-eof: sha224sum exited with status 1 (expected 0)
Now, maybe we'll get a clue, the next time that happens.

17 years ago* .x-sc_useless_cpp_parens: Ignore a false-positive in a shell script.
Jim Meyering [Mon, 12 Feb 2007 19:09:12 +0000 (20:09 +0100)]
* .x-sc_useless_cpp_parens: Ignore a false-positive in a shell script.

17 years ago* tests/misc/pwd-unreadable-parent: Skip the test if we're
Jim Meyering [Mon, 12 Feb 2007 00:20:20 +0000 (01:20 +0100)]
* tests/misc/pwd-unreadable-parent: Skip the test if we're
definitely using the replacement.
* tests/misc/Makefile.am (TESTS_ENVIRONMENT): Define CONFIG_HEADER.

17 years agoRemove excess leading spaces that would make help2man misbehave.
Jim Meyering [Sat, 10 Feb 2007 21:30:18 +0000 (22:30 +0100)]
Remove excess leading spaces that would make help2man misbehave.
* src/printf.c (usage): Remove excess spaces on 2nd line of %b desc.
* src/nl.c (usage): Remove excess spaces on 2nd line of pBRE desc.
* src/dd.c (usage): Remove excess spaces on 2nd line of sync desc.
* src/date.c (usage): Use two spaces after each optional flag, not one.
Reported by Thomas Huriaux in <http://bugs.debian.org/410407>.

17 years ago* Makefile.maint (longopt_re): Relax the regexp, making square
Jim Meyering [Sat, 10 Feb 2007 15:17:41 +0000 (16:17 +0100)]
* Makefile.maint (longopt_re): Relax the regexp, making square
brackets optional, so it matches the newly reported violations, too.

17 years ago* src/csplit.c (usage): Use two spaces (not one) to separate
Jim Meyering [Sat, 10 Feb 2007 15:15:34 +0000 (16:15 +0100)]
* src/csplit.c (usage): Use two spaces (not one) to separate
each option string from its description, so help2man formats
the derived man page properly.  Reported by Thomas Huriaux in
<http://bugs.debian.org/410407>.
* src/df.c (usage): Likewise.
* src/du.c (usage): Likewise.
* src/install.c (usage): Likewise.
* src/ls.c (usage): Likewise.

17 years agoTest for today's gnulib/lib/getcwd.c fix affecting pwd and readlink
Jim Meyering [Sat, 3 Feb 2007 19:02:48 +0000 (20:02 +0100)]
Test for today's gnulib/lib/getcwd.c fix affecting pwd and readlink
* NEWS: Mention the bug fix.
* tests/misc/pwd-unreadable-parent: New file.
* tests/misc/Makefile.am (TESTS): Ad pwd-unreadable-parent.

17 years ago* NEWS: Document fix for cp --preserve=mode.
Paul Eggert [Sat, 3 Feb 2007 17:45:46 +0000 (18:45 +0100)]
* NEWS: Document fix for cp --preserve=mode.
* src/copy.c (copy_internal): Omit the group- or other-writeable
permissions when creating a directory, to avoid a race condition
if the special mode bits aren't right just after the directory is
created.
* src/cp.c (make_dir_parents_private): Likewise.
* tests/cp/parent-perm-race: Test for the "cp --preserve=mode"
race fix in copy.c.

17 years ago* NEWS: Document fix for cp --parents.
Paul Eggert [Sat, 3 Feb 2007 17:12:11 +0000 (18:12 +0100)]
* NEWS: Document fix for cp --parents.
* src/cp.c (make_dir_parents_private): Report the error sooner with
"cp --parents DIR/FILE DEST" when DIR is a non-directory, thus not
creating the directory, DEST/DIR.
* tests/cp/cp-parents: Test for the non-race-condition bug fixed
by the above change.

17 years ago* src/nl.c (proc_text): Use "NULL", not "(struct re_registers *) 0".
Jim Meyering [Fri, 2 Feb 2007 07:57:47 +0000 (08:57 +0100)]
* src/nl.c (proc_text): Use "NULL", not "(struct re_registers *) 0".

17 years ago* src/c99-to-c89.diff: Make shred.c Index: and a/b prefixes
Jim Meyering [Fri, 2 Feb 2007 00:22:58 +0000 (01:22 +0100)]
* src/c99-to-c89.diff: Make shred.c Index: and a/b prefixes
consistent, so this can be applied with patch -p0.
Reported by Matthew Woehlke.

* Makefile.maint (patch-check): Use patch with its -p2 option,
since that makes this check slightly more strict.

17 years ago* vc-list-files: Select column 2, not 3 (hg-0.9.3's manifest format
Jim Meyering [Tue, 30 Jan 2007 22:07:38 +0000 (23:07 +0100)]
* vc-list-files: Select column 2, not 3 (hg-0.9.3's manifest format
now has only two columns).

17 years ago* coreutils.texi: @item -> @itemx to fix some typos.
Paul Eggert [Tue, 30 Jan 2007 21:56:48 +0000 (22:56 +0100)]
* coreutils.texi: @item -> @itemx to fix some typos.

17 years ago* coreutils.texi (mkdir invocation): Say how to set the file
Paul Eggert [Tue, 30 Jan 2007 21:54:34 +0000 (22:54 +0100)]
* coreutils.texi (mkdir invocation): Say how to set the file
permission bits of a parent directory with mkdir -p.

17 years agoDocument new syntax: "chown +0:+287 file", "chgrp +99 file"
Jim Meyering [Mon, 29 Jan 2007 17:09:57 +0000 (18:09 +0100)]
Document new syntax: "chown +0:+287 file", "chgrp +99 file"
* coreutils.texi (Disambiguating names and IDs): New section.
(chown invocation, chgrp invocation): Mention the new syntax
with an xref to the new section.

17 years agoRegenerate .cvsignore and .gitignore files.
Jim Meyering [Mon, 29 Jan 2007 14:38:50 +0000 (15:38 +0100)]
Regenerate .cvsignore and .gitignore files.

17 years agoPlug a leak in ls.
Jim Meyering [Mon, 29 Jan 2007 13:18:28 +0000 (14:18 +0100)]
Plug a leak in ls.
* src/ls.c (print_dir): Don't leak a "DIR"+fd upon failure to
determine dev/inode or upon detecting a symlink loop.

17 years ago* src/ls.c: Rename three global variables.
Jim Meyering [Mon, 29 Jan 2007 13:06:45 +0000 (14:06 +0100)]
* src/ls.c: Rename three global variables.
(cwd_file): Rename from 'files'.
(cwd_n_alloc): Rename from 'nfiles'.
(cwd_n_used): Rename from 'files_index'.

17 years agoShave 8 bytes off the size of "struct fileinfo".
Jim Meyering [Mon, 29 Jan 2007 11:25:01 +0000 (12:25 +0100)]
Shave 8 bytes off the size of "struct fileinfo".
* src/ls.c (fileinfo): Put all members of type "bool" together.