platform/upstream/coreutils.git
18 years ago* bootstrap (symlink_to_gnulib): Fix bug: the dot_dots shell
Paul Eggert [Wed, 11 Oct 2006 23:03:55 +0000 (23:03 +0000)]
* bootstrap (symlink_to_gnulib): Fix bug: the dot_dots shell
variable was sometimes used without being initialized.  This
messed up the installation of the INSTALL file in some cases.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Oct 2006 05:46:25 +0000 (05:46 +0000)]
*** empty log message ***

18 years ago* src/ls.c (usage): Correct description of -s, --size.
Jim Meyering [Wed, 11 Oct 2006 05:44:41 +0000 (05:44 +0000)]
* src/ls.c (usage): Correct description of -s, --size.
It works even without -l.  Suggestion from Karl Berry.

18 years ago* src/ls.c (quote_name): Use initializer rather than memset to
Paul Eggert [Tue, 10 Oct 2006 22:57:07 +0000 (22:57 +0000)]
* src/ls.c (quote_name): Use initializer rather than memset to
initialize an object to zero.  This is easier to read and is less
likely to introduce an runtime error due to a mixup.  It causes
gcc -W to issue a warning, but you can work around this by
appending -Wno-missing-field-initializers.
* src/pathchk.c (portable_chars_only): Likewise.
* src/shred.c (main): Likewise.
* src/stty.c (main): Likewise.
* src/tr.c (card_of_complement): Likewise.
* src/wc.c (wc): Likewise.

18 years ago* src/sort.c (usage): Mention again that sort fields are origin 1.
Paul Eggert [Mon, 9 Oct 2006 23:26:33 +0000 (23:26 +0000)]
* src/sort.c (usage): Mention again that sort fields are origin 1.

18 years ago* NEWS: Fix typo: iso-8602 -> iso-8601. Problem reported by
Paul Eggert [Mon, 9 Oct 2006 20:38:56 +0000 (20:38 +0000)]
* NEWS: Fix typo: iso-8602 -> iso-8601.  Problem reported by
Bob Proulx.

18 years ago* bootstrap (usage, main program, symlink_to_gnulib): Add option
Paul Eggert [Mon, 9 Oct 2006 20:33:38 +0000 (20:33 +0000)]
* bootstrap (usage, main program, symlink_to_gnulib): Add option
--copy.  Inspired by a suggestion from Bruno Haible.

18 years agoAvoid a compiler warning.
Jim Meyering [Mon, 9 Oct 2006 11:56:40 +0000 (11:56 +0000)]
Avoid a compiler warning.
* src/pathchk.c (portable_chars_only): Initialize variable of type
mbstate_t via memset, rather than via '{0}'.  Patch from Bruno Haible.

18 years ago* jm-macros.m4 (gl_MACROS): Remove use of AC_CONFIG_LIBOBJ_DIR(lib).
Jim Meyering [Sat, 7 Oct 2006 15:53:03 +0000 (15:53 +0000)]
* jm-macros.m4 (gl_MACROS): Remove use of AC_CONFIG_LIBOBJ_DIR(lib).
It is no longer needed, and was causing dependencies to appear
in lib/lib/.deps, which provoked a "make distcheck" failure.

18 years agoGive credit to Lars Wendler.
Paul Eggert [Sat, 7 Oct 2006 07:12:12 +0000 (07:12 +0000)]
Give credit to Lars Wendler.

18 years ago* src/install.c (make_ancestor): New arg COMPONENT.
Paul Eggert [Sat, 7 Oct 2006 07:08:29 +0000 (07:08 +0000)]
* src/install.c (make_ancestor): New arg COMPONENT.
* src/mkdir.c (make_ancestor): Likewise.
* tests/install/basic-1: Check for install -Dv bug.

18 years agoFix bug reported today by Mike Frysinger: mkdir -pv is logging the
Paul Eggert [Fri, 6 Oct 2006 20:44:31 +0000 (20:44 +0000)]
Fix bug reported today by Mike Frysinger: mkdir -pv is logging the
wrong file name in some cases.
* src/install.c (struct install_options): New type.
(install_file_in_file_parents, main):
Use it instead of struct cp_options.
(process_dir): Remember the full name.
(announce_mkdir, make_ancestor): Use the full name in announcements.
* src/mkdir.c (struct mkdir_options): Add full_name member.
(make_ancestor): Use the full name in announcements.
(process_dir): Remember the full name.
* tests/mkdir/Makefile.am (TESTS): Add p-v.
* tests/mkdir/p-v: New file, to test this bug.

18 years agoAvoid a compiler warning: const'ify and remove a cast.
Jim Meyering [Fri, 6 Oct 2006 14:37:48 +0000 (14:37 +0000)]
Avoid a compiler warning: const'ify and remove a cast.
* randread.c (struct randread_source) [handler]: Make parameter "const".
[handler_arg]: Add "const" attribute.
(randread_error): Make parameter "const".
(simple_new, randread_set_handler, randread_set_handler_arg): Likewise.
(randread_new): Remove now-unnecessary cast.
* randread.h: Adjust prototypes.

18 years ago* src/c99-to-c89.diff: Update to reflect new offsets.
Jim Meyering [Fri, 6 Oct 2006 14:24:09 +0000 (14:24 +0000)]
* src/c99-to-c89.diff: Update to reflect new offsets.

18 years ago* src/chgrp.c: Don't include lchown.h; no longer needed.
Paul Eggert [Thu, 5 Oct 2006 22:40:55 +0000 (22:40 +0000)]
* src/chgrp.c: Don't include lchown.h; no longer needed.
* src/chown.c: Likewise.

18 years ago* tests/ls/stat-dtype: Use a dynamic test to decide whether the
Paul Eggert [Thu, 5 Oct 2006 22:10:08 +0000 (22:10 +0000)]
* tests/ls/stat-dtype: Use a dynamic test to decide whether the
current file system has useful d_type info.

18 years ago* src/dd.c (flags): noatime and nofollow now depend on
Paul Eggert [Thu, 5 Oct 2006 21:39:12 +0000 (21:39 +0000)]
* src/dd.c (flags): noatime and nofollow now depend on
HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW, too.
(usage): Output info about noatime and nofollow only if
they are known to work.
* src/remove.c (AD_push): Inspect HAVE_WORKING_O_NOFOLLOW rather
than O_NOFOLLOW, when testing whether it's possible to avoid a
race condition reliably.

18 years ago* tests/install/basic-1: Skip the latter part of this test if the
Jim Meyering [Thu, 5 Oct 2006 08:43:24 +0000 (08:43 +0000)]
* tests/install/basic-1: Skip the latter part of this test if the
just-built dd binary is not readable.  Otherwise, this test would fail
when binaries were created as root.  Reported by Bauke Jan Douma in
<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8433>.

18 years ago* src/system.h (ST_BLKSIZE): Ceiling at SIZE_MAX / 8 + 1, not at 4
Paul Eggert [Tue, 3 Oct 2006 22:25:51 +0000 (22:25 +0000)]
* src/system.h (ST_BLKSIZE): Ceiling at SIZE_MAX / 8 + 1, not at 4
MiB, since XFS hosts can legitimately have large values of
st_blksize.  Problem reported by Tony Ernst in
<http://savannah.gnu.org/bugs/?17903>.

18 years ago* NEWS: Update here, too.
Jim Meyering [Tue, 3 Oct 2006 22:07:36 +0000 (22:07 +0000)]
* NEWS: Update here, too.

18 years ago* src/remove.c (nonexistent_file_errno): Remove ENAMETOOLONG.
Jim Meyering [Tue, 3 Oct 2006 22:06:31 +0000 (22:06 +0000)]
* src/remove.c (nonexistent_file_errno): Remove ENAMETOOLONG.
Paul Eggert pointed out that the specified file may exist,
in spite of such an errno value.
* tests/rm/Makefile.am (TESTS): Remove ignore-name-too-long.
* tests/rm/ignore-name-too-long: Remove file.

18 years ago* tests/rm/fail-eperm: Report failure also if rm is terminated by
Jim Meyering [Tue, 3 Oct 2006 13:57:26 +0000 (13:57 +0000)]
* tests/rm/fail-eperm: Report failure also if rm is terminated by
a signal.

18 years ago* src/c99-to-c89.diff: Convert two c99'isms -- one in remove.c
Jim Meyering [Tue, 3 Oct 2006 13:57:04 +0000 (13:57 +0000)]
* src/c99-to-c89.diff: Convert two c99'isms -- one in remove.c
and one in shred.c -- that were added before coreutils-6.3.
Reported by Michael Deutschmann.

18 years ago* src/c99-to-c89.diff: Update to reflect new offsets.
Jim Meyering [Tue, 3 Oct 2006 13:40:36 +0000 (13:40 +0000)]
* src/c99-to-c89.diff: Update to reflect new offsets.

18 years ago* src/remove.c (remove_entry): With -f, exit successfully in spite
Jim Meyering [Tue, 3 Oct 2006 13:32:55 +0000 (13:32 +0000)]
* src/remove.c (remove_entry): With -f, exit successfully in spite
of a missing file under some very unusual conditions (with errno
being any of ENOENT, ENOTDIR, ENAMETOOLONG).

18 years agoWith --force (-f), rm no longer fails for ENOTDIR.
Jim Meyering [Tue, 3 Oct 2006 13:13:09 +0000 (13:13 +0000)]
With --force (-f), rm no longer fails for ENOTDIR.
* src/remove.c (ignorable_missing): New function.
Use it everywhere, rather than open-coding the test.
Andreas Schwab reported the ENOTDIR problem.
(ignorable_missing): Similarly, don't fail for ENAMETOOLONG.
* NEWS: Mention the bug fix.
* tests/rm/ignorable: New file.  Test for the ENOTDIR case.
* tests/rm/ignore-name-too-long: New file. Test for ENAMETOOLONG.
* tests/rm/Makefile.am (TESTS): Add the new file names.

18 years ago* NEWS: Add a line for 6.4-cvs.
Jim Meyering [Mon, 2 Oct 2006 11:47:48 +0000 (11:47 +0000)]
* NEWS: Add a line for 6.4-cvs.
* configure.ac (AC_INIT): Bump to 6.4 and add "-cvs" suffix.

18 years ago* bootstrap: Undo last change to this file, since now gnulib-tool
Jim Meyering [Mon, 2 Oct 2006 11:47:35 +0000 (11:47 +0000)]
* bootstrap: Undo last change to this file, since now gnulib-tool
sticks with the automake default in generating dependencies.

18 years ago.
Jim Meyering [Sat, 30 Sep 2006 17:37:25 +0000 (17:37 +0000)]
.

18 years agoVersion 6.3. COREUTILS-6_3 v6.3
Jim Meyering [Sat, 30 Sep 2006 07:43:21 +0000 (07:43 +0000)]
Version 6.3.
* NEWS: Record the 6.3 release date.
* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.

* NEWS: Mention Paul's Solaris 8 vs. 10 work-around.

18 years ago* src/c99-to-c89.diff: Update offsets.
Jim Meyering [Sat, 30 Sep 2006 07:37:07 +0000 (07:37 +0000)]
* src/c99-to-c89.diff: Update offsets.

18 years ago* .cvsignore: Add openat-proc.c.
Paul Eggert [Sat, 30 Sep 2006 00:42:06 +0000 (00:42 +0000)]
* .cvsignore: Add openat-proc.c.

18 years ago* tests/rm/readdir-bug: Don't use $(...) in a shell script,
Paul Eggert [Sat, 30 Sep 2006 00:19:29 +0000 (00:19 +0000)]
* tests/rm/readdir-bug: Don't use $(...) in a shell script,
as it doesn't work with Solaris /bin/sh.

18 years ago* NEWS: Mention Paul's fix (to gnulib's canon-host.c) for
Jim Meyering [Fri, 29 Sep 2006 21:37:18 +0000 (21:37 +0000)]
* NEWS: Mention Paul's fix (to gnulib's canon-host.c) for
the pinky segfault.

18 years ago* tests/seq/basic [neg-2, eq-wid-2]: Comment out tests that
Jim Meyering [Fri, 29 Sep 2006 16:52:59 +0000 (16:52 +0000)]
* tests/seq/basic [neg-2, eq-wid-2]: Comment out tests that
use .1 as the increment.  Actual output varies too much.
[eq-wid-3]: New, commented out test.

18 years ago* src/shuf.c (read_input): Fix an off-by-one error that
Jim Meyering [Fri, 29 Sep 2006 16:52:48 +0000 (16:52 +0000)]
* src/shuf.c (read_input): Fix an off-by-one error that
would cause an infloop for piped input of 8KB or more.
* NEWS: Mention the fix.
* tests/misc/shuf: Test for the above fix.

18 years ago[ChangeLog]
Jim Meyering [Fri, 29 Sep 2006 15:58:04 +0000 (15:58 +0000)]
[ChangeLog]
Since any system may be affected by the Darwin readdir bug,
perform the extra rewinddir unconditionally.  The performance
impact of rewinding a directory is negligible.
* src/remove.c (NEED_REWIND): Define to use
CONSECUTIVE_READDIR_UNLINK_THRESHOLD unconditionally.
[m4/ChangeLog]
* readdir.m4: Remove file once again.
* jm-macros.m4: Remove reference to gl_FUNC_READDIR.

18 years ago* tests/seq/basic: Use .11 as the upper bound, in case the ".1"
Jim Meyering [Fri, 29 Sep 2006 11:30:48 +0000 (11:30 +0000)]
* tests/seq/basic: Use .11 as the upper bound, in case the ".1"
increment translates to a slightly larger value.
This corrects a test failure on FreeBSD 6.1 reported by Nelson Beebe.
The final expected value wasn't being printed.

18 years agoWork around a readdir bug in Darwin 7.9.0 (MacOS X 10.3.9) on HFS+
Jim Meyering [Fri, 29 Sep 2006 09:54:24 +0000 (09:54 +0000)]
Work around a readdir bug in Darwin 7.9.0 (MacOS X 10.3.9) on HFS+
and NFS, whereby rm would not remove all files in a directory.
* src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Reduce to 10.
(NEED_REWIND): New macro, so that we incur the cost of the work-around
rewinddir only on afflicted systems.
* NEWS: Clarify and correct.
* tests/rm/readdir-bug: New file.  Test for the above fix.
* tests/rm/Makefile.am (TESTS): Add it.
Prompted by testing and analysis from Bruno Haible:
http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html

18 years agofix typo: s/dignostic/diagnostic/
Jim Meyering [Thu, 28 Sep 2006 23:08:20 +0000 (23:08 +0000)]
fix typo: s/dignostic/diagnostic/

18 years ago* tests/rm/fail-eperm: Unset BASH_ENV, CDPATH, and ENV, too;
Paul Eggert [Thu, 28 Sep 2006 22:07:42 +0000 (22:07 +0000)]
* tests/rm/fail-eperm: Unset BASH_ENV, CDPATH, and ENV, too;
suggested for Debian stable, which uses Perl 5.8.4.

18 years ago* readdir.m4: Increment serial number.
Jim Meyering [Thu, 28 Sep 2006 21:03:58 +0000 (21:03 +0000)]
* readdir.m4: Increment serial number.

18 years ago* jm-macros.m4: Require the new macro.
Jim Meyering [Thu, 28 Sep 2006 21:03:15 +0000 (21:03 +0000)]
* jm-macros.m4: Require the new macro.
* readdir.m4 (gl_FUNC_READDIR): Rename from GL_FUNC_READDIR.

18 years ago* readdir.m4: Revivify this file.
Jim Meyering [Thu, 28 Sep 2006 21:00:30 +0000 (21:00 +0000)]
* readdir.m4: Revivify this file.
We need it to work around a bug on Darwin 0.7.x.

18 years agoAutomatically generated dependencies are important even
Jim Meyering [Thu, 28 Sep 2006 18:33:19 +0000 (18:33 +0000)]
Automatically generated dependencies are important even
when all of the sources in a directory come from gnulib.
* bootstrap (gnulib_tool): Remove the "no-dependencies" automake
option that gnulib-tool adds to what becomes our lib/gnulib.mk.

18 years ago* tests/rm/fail-eperm: Enable Perl's (-T) taint checking.
Jim Meyering [Thu, 28 Sep 2006 13:31:57 +0000 (13:31 +0000)]
* tests/rm/fail-eperm: Enable Perl's (-T) taint checking.
Ensure that IFS is set properly and unset PATH.
Sanitize inputs.
Work properly even when the name of the selected file starts with "-".
Invoke rm via "../../src/rm", and adjust expected output.
Prompted by a patch from Tim Waugh.

18 years ago* README-cvs: Add Bison to the list of required packages.
Jim Meyering [Thu, 28 Sep 2006 07:10:53 +0000 (07:10 +0000)]
* README-cvs: Add Bison to the list of required packages.

18 years ago* src/c99-to-c89.diff: Update offsets.
Jim Meyering [Tue, 26 Sep 2006 22:57:51 +0000 (22:57 +0000)]
* src/c99-to-c89.diff: Update offsets.

18 years ago* NEWS: rm works around a bug in Darwin 8.6.1 w/NFS that kept
Jim Meyering [Tue, 26 Sep 2006 20:42:43 +0000 (20:42 +0000)]
* NEWS: rm works around a bug in Darwin 8.6.1 w/NFS that kept
it from removing a directory containing 188 or more entries.
* src/remove.c (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Decrease by
20, go work around the buggy readdir on Darwin 8.6.1 with NFS.
Reported by Matthew Woehlke.

18 years ago[ChangeLog]
Paul Eggert [Tue, 26 Sep 2006 19:11:25 +0000 (19:11 +0000)]
[ChangeLog]
* NEWS: "groups user" no longer outputs "user :"; you need at least
two users.  "groups" now processes options like --help more compatibly.
* src/groups.sh: Implement the option-processing change.
Handle user and group names with special characters more robustly.
Report write errors instead of exiting silently with status 1.
[doc/ChangeLog]
* coreutils.texi (groups invocation): "groups" no longer prefixes
the output with "user :" unless more than one user is specified.

18 years ago* README: Warn not to run autoreconf manually. Use bootstrap instead.
Jim Meyering [Tue, 26 Sep 2006 13:03:03 +0000 (13:03 +0000)]
* README: Warn not to run autoreconf manually.  Use bootstrap instead.

18 years ago* src/groups.sh: When invoked with 0 or 1 argument, just exec "id".
Jim Meyering [Tue, 26 Sep 2006 09:46:35 +0000 (09:46 +0000)]
* src/groups.sh: When invoked with 0 or 1 argument, just exec "id".
Rewrite to avoid using temporary, $status.

18 years ago* NEWS: Mention the bug fix.
Jim Meyering [Tue, 26 Sep 2006 09:28:17 +0000 (09:28 +0000)]
* NEWS: Mention the bug fix.
* src/groups.sh: Don't hide a write failure.
Reported by Iain Calder <ic56@rogers.com>.

18 years ago*** empty log message ***
Jim Meyering [Tue, 26 Sep 2006 09:18:20 +0000 (09:18 +0000)]
*** empty log message ***

18 years ago* .cvsignore: Add fchmodat.c.
Paul Eggert [Tue, 26 Sep 2006 05:21:55 +0000 (05:21 +0000)]
* .cvsignore: Add fchmodat.c.

18 years ago* fchmodat.c: Remove file. gnulib's copy is identical.
Jim Meyering [Mon, 25 Sep 2006 16:58:53 +0000 (16:58 +0000)]
* fchmodat.c: Remove file.  gnulib's copy is identical.

18 years ago* src/chown.c (usage): Clarify --dereference description.
Jim Meyering [Mon, 25 Sep 2006 06:28:34 +0000 (06:28 +0000)]
* src/chown.c (usage): Clarify --dereference description.
* src/chgrp.c (usage): Likewise.  Suggestion from Jamie McClelland.

18 years ago*** empty log message ***
Jim Meyering [Mon, 25 Sep 2006 06:22:35 +0000 (06:22 +0000)]
*** empty log message ***

18 years ago* NEWS: Mention these fixes.
Jim Meyering [Sun, 24 Sep 2006 19:28:25 +0000 (19:28 +0000)]
* NEWS: Mention these fixes.
* src/copy.c (copy_reg): With --verbose (-v), print
"removed `file_name'" just after unlinking a file.
(copy_internal): Likewise, in three more places.
Marc Lehman reported that "touch x; ln x y; mv -v x y" was silent.

18 years ago.
Jim Meyering [Sun, 24 Sep 2006 19:27:02 +0000 (19:27 +0000)]
.

18 years ago* tests/mv/hard-verbose: New file. Test for the above fix.
Jim Meyering [Sun, 24 Sep 2006 16:55:13 +0000 (16:55 +0000)]
* tests/mv/hard-verbose: New file.  Test for the above fix.
* tests/mv/Makefile.am (TESTS): Add hard-verbose.

18 years ago* tests/help-version (sync_args): Don't call sync, since it spins up
Jim Meyering [Sun, 24 Sep 2006 16:46:41 +0000 (16:46 +0000)]
* tests/help-version (sync_args): Don't call sync, since it spins up
disks that I've deliberately caused to spin down (but not unmounted).

18 years ago* NEWS: Mention the improvement to sort.
Jim Meyering [Sun, 24 Sep 2006 11:44:16 +0000 (11:44 +0000)]
* NEWS: Mention the improvement to sort.

18 years ago* tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
Jim Meyering [Sun, 24 Sep 2006 07:29:44 +0000 (07:29 +0000)]
* tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
as well as existing.

18 years ago* tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
Jim Meyering [Sun, 24 Sep 2006 07:27:00 +0000 (07:27 +0000)]
* tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
since that predated addition of d_type support.

18 years ago* Makefile.am (EXTRA_DIST): Sort file names.
Jim Meyering [Sat, 23 Sep 2006 17:00:29 +0000 (17:00 +0000)]
* Makefile.am (EXTRA_DIST): Sort file names.
Add bootstrap and gl/modules/getloadavg.diff

18 years agoremove trailing blanks
Jim Meyering [Sat, 23 Sep 2006 17:00:08 +0000 (17:00 +0000)]
remove trailing blanks

18 years ago* gl/modules/getloadavg.diff: New file. Work around the way the latest
Jim Meyering [Sat, 23 Sep 2006 16:51:53 +0000 (16:51 +0000)]
* gl/modules/getloadavg.diff: New file.  Work around the way the latest
version of the getloadavg module interacts with our bootstrap script.
* bootstrap (gnulib_tool_options): Add "--local-dir gl".

18 years ago* bootstrap: Add support for --force.
Paul Eggert [Wed, 20 Sep 2006 21:28:26 +0000 (21:28 +0000)]
* bootstrap: Add support for --force.
(usage): New function.  Describe usage less tersely.
(CVS_only_file): New var.

18 years ago* NEWS: Document fix for cp -i and mv -i.
Paul Eggert [Wed, 20 Sep 2006 17:32:14 +0000 (17:32 +0000)]
* NEWS: Document fix for cp -i and mv -i.
* src/copy.c (copy_internal): With -i, prompt even if the source
is a directory and the destination is not.  This is required by
POSIX and gives the user a chance to bail out before failing.
* tests/cp/Makefile.am (TESTS): Add cp-i.
* tests/cp/cp-i: New file.
* tests/mv/Makefile.am (TESTS): Add i-5.
* tests/mv/i-5: New file.

18 years ago* NEWS: Mention the chmod bug fix.
Jim Meyering [Wed, 20 Sep 2006 13:30:55 +0000 (13:30 +0000)]
* NEWS: Mention the chmod bug fix.

18 years ago*** empty log message ***
Jim Meyering [Wed, 20 Sep 2006 12:41:20 +0000 (12:41 +0000)]
*** empty log message ***

18 years ago* tests/chmod/inaccessible: New test.
Jim Meyering [Wed, 20 Sep 2006 12:38:22 +0000 (12:38 +0000)]
* tests/chmod/inaccessible: New test.
* tests/chmod/Makefile.am (TESTS): Add inaccessible.

18 years agoFix the 2006-09-18 bug differently.
Jim Meyering [Wed, 20 Sep 2006 11:50:46 +0000 (11:50 +0000)]
Fix the 2006-09-18 bug differently.
* src/chmod.c: (process_file): Upon FTS_NS for a top-level file,
tell fts_read to stat the file again, in case it has become
accessible since the initial fts_open call.
* src/chown-core.c (change_file_owner): Likewise.

18 years ago* src/chmod.c: Revert last change. There is a better way.
Jim Meyering [Wed, 20 Sep 2006 11:26:18 +0000 (11:26 +0000)]
* src/chmod.c: Revert last change.  There is a better way.
* src/chown-core.c: Likewise.

18 years ago* coreutils.texi (Disk usage): Clarify intro. Problem reported by Van Ly.
Paul Eggert [Tue, 19 Sep 2006 22:39:38 +0000 (22:39 +0000)]
* coreutils.texi (Disk usage): Clarify intro.  Problem reported by Van Ly.

18 years ago* src/ln.c (target_directory_operand): Rewrite to avoid porting
Paul Eggert [Tue, 19 Sep 2006 22:11:38 +0000 (22:11 +0000)]
* src/ln.c (target_directory_operand): Rewrite to avoid porting
problem on Tandem reported by Matthew Woehlke in
<https://savannah.gnu.org/bugs/?17172>.

18 years ago(cp invocation): Clarify cp -i a bit more.
Paul Eggert [Tue, 19 Sep 2006 21:54:01 +0000 (21:54 +0000)]
(cp invocation): Clarify cp -i a bit more.

18 years ago* coreutils.texi (cp invocation): Say that -i and -f are
Paul Eggert [Tue, 19 Sep 2006 16:49:06 +0000 (16:49 +0000)]
* coreutils.texi (cp invocation): Say that -i and -f are
independent.  Clarify -i's behavior.

18 years agoFix bug where chmod, chown, and chgrp did not process operands
Paul Eggert [Mon, 18 Sep 2006 22:09:49 +0000 (22:09 +0000)]
Fix bug where chmod, chown, and chgrp did not process operands
left-to-right in some cases.
* src/chmod.c (wd_errno): New var.
(chmod_file): New function, with most of the contents of the
old prcess_file function.
(process_files): Use it.  This gives file names to fts one
at a time, so that they are processed left-to-right as POSIX
requires.
* src/chown-core.c (wd_errno, chown_files): Likewise.
(chown_file): New function.
* tests/install/basic-1: Redo test so as to not workaround
the chmod bug, thereby testing for it.

18 years ago* src/shuf.c (main): Quote the entire range when reporting an
Paul Eggert [Mon, 18 Sep 2006 20:38:54 +0000 (20:38 +0000)]
* src/shuf.c (main): Quote the entire range when reporting an
invalid one, rather than just the part that contained the error.

18 years ago* tests/stty/row-col-1: Rewrite to avoid temporary file that is
Paul Eggert [Mon, 18 Sep 2006 20:34:50 +0000 (20:34 +0000)]
* tests/stty/row-col-1: Rewrite to avoid temporary file that is
sometimes left behind if the test is skipped or interrupted.

18 years ago* bootstrap (symlink_to_gnulib): New function.
Paul Eggert [Mon, 18 Sep 2006 20:20:03 +0000 (20:20 +0000)]
* bootstrap (symlink_to_gnulib): New function.
(cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib
to copies-of-gnulib.
(cp_mark_as_generated, slurp, gnulib_files):
Avoid making a copy if it's the same as the old version.
(gnulib_files): Add support for this variable (used by Bison).

18 years ago* tests/ls/stat-vs-dirent: Fix quoting problem in diagnostic
Paul Eggert [Mon, 18 Sep 2006 16:34:27 +0000 (16:34 +0000)]
* tests/ls/stat-vs-dirent: Fix quoting problem in diagnostic
indicating flaw in kernel.  Reword to say that the flaw isn't
serious for coreutils, since the flaw does affect ls -i.

18 years agoFix bug in test case exposed by building on
Paul Eggert [Mon, 18 Sep 2006 16:11:00 +0000 (16:11 +0000)]
Fix bug in test case exposed by building on
Solaris 8 in a setgid directory.  The test case incorrectly
assumed that 'symlink' would be in group $g1.

18 years ago* NEWS: Add a line for 6.3-cvs.
Jim Meyering [Mon, 18 Sep 2006 13:01:09 +0000 (13:01 +0000)]
* NEWS: Add a line for 6.3-cvs.
* configure.ac (AC_INIT): Bump to 6.3 and add "-cvs" suffix.

18 years ago.
Jim Meyering [Mon, 18 Sep 2006 08:09:54 +0000 (08:09 +0000)]
.

18 years agoduh COREUTILS-6_2 v6.2
Jim Meyering [Mon, 18 Sep 2006 07:51:48 +0000 (07:51 +0000)]
duh

18 years ago*** empty log message ***
Jim Meyering [Mon, 18 Sep 2006 07:51:33 +0000 (07:51 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Mon, 18 Sep 2006 07:51:07 +0000 (07:51 +0000)]
*** empty log message ***

18 years agoVersion 6.2.
Jim Meyering [Mon, 18 Sep 2006 05:58:55 +0000 (05:58 +0000)]
Version 6.2.
* NEWS: Record the 6.2 release date.
* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.

18 years ago* tests/chgrp/basic: On an OpenBSD system, rather than failing
Jim Meyering [Sun, 17 Sep 2006 20:58:34 +0000 (20:58 +0000)]
* tests/chgrp/basic: On an OpenBSD system, rather than failing
due to a known problem, merely warn about it.
Rewrite to avoid testing output of chgrp --verbose and chgrp -c.
Instead, use stat to test file system for desired results, directly.
* tests/chgrp/Makefile.am (TESTS_ENVIRONMENT): Set host_triplet.

18 years ago* tests/envvar-check: Add more variable names to the list of those
Jim Meyering [Sun, 17 Sep 2006 20:29:05 +0000 (20:29 +0000)]
* tests/envvar-check: Add more variable names to the list of those
that can affect these programs and tests: _POSIX2_VERSION, COLUMNS,
QUOTING_STYLE, TABSIZE, TERM, TMPDIR.

18 years ago.
Jim Meyering [Sun, 17 Sep 2006 20:15:52 +0000 (20:15 +0000)]
.

18 years ago* NEWS: Document that mkdir -p and install -d now fork on occasion.
Paul Eggert [Sat, 16 Sep 2006 20:03:56 +0000 (20:03 +0000)]
* NEWS: Document that mkdir -p and install -d now fork on occasion.
* bootstrap.conf (gnulib_modules): Add savewd.
* src/install.c: Include savewd.h.
(process_dir): New function.
(main, install_file_in_file_parents): Use it, along with the new
savewd module, to avoid some race conditions.
* src/mkdir.c: Include savewd.h.
(struct mkdir_options): New members make_ancestor_function, mode,
mode_bits.
(make_ancestor): Return 1 if the resulting directory is not readable.
(process_dir): New function.
(main): Use it, along with new savewd module, to avoid some
race conditions.  Fill in new slots of struct mkdir_options, so
that callees get the values.
* tests/install/basic-1: Test for coreutils 5.97 bug that was
fixed in coreutils 6.0, and which should still be fixed with
this change.
* tests/mkdir/p-3: Likewise.

18 years ago* Makefile.maint (sc_require_config_h, sc_prohibit_assert_without_use):
Jim Meyering [Sat, 16 Sep 2006 08:44:18 +0000 (08:44 +0000)]
* Makefile.maint (sc_require_config_h, sc_prohibit_assert_without_use):
Discard stdout from the new use of grep.

18 years ago* bootstrap.conf (gnulib_modules): Add rename-dest-slash.
Jim Meyering [Fri, 15 Sep 2006 14:11:39 +0000 (14:11 +0000)]
* bootstrap.conf (gnulib_modules): Add rename-dest-slash.
The 2006-09-08 changes made it so "mv dir new-name/" would
fail on NetBSD 1.6.  This makes it work once again.

18 years ago* src/mv.c (main): Remove unnecessary (always-true) test for 2 <= n.
Jim Meyering [Thu, 14 Sep 2006 10:06:42 +0000 (10:06 +0000)]
* src/mv.c (main): Remove unnecessary (always-true) test for 2 <= n.
Instead, since it's a little fragile, assert the condition.
(target_directory_operand): Update comment to reflect latest change.

18 years ago(print_user): Rewrite to avoid warning from GCC 4.1.1 with -Wall.
Paul Eggert [Tue, 12 Sep 2006 23:32:16 +0000 (23:32 +0000)]
(print_user): Rewrite to avoid warning from GCC 4.1.1 with -Wall.

18 years ago* tests/mv/atomic: Check for specific strace output, rather than
Jim Meyering [Tue, 12 Sep 2006 09:33:40 +0000 (09:33 +0000)]
* tests/mv/atomic: Check for specific strace output, rather than
simply nonempty.  RHEL AS 4 would fail this test due to strace
generating "[ Process PID=14434 runs in 32 bit mode. ]".
Reported by Nelson Beebe.