platform/upstream/coreutils.git
17 years ago* .gitignore: Remove some references to files in subdirectories.
Jim Meyering [Sat, 21 Oct 2006 19:50:47 +0000 (19:50 +0000)]
* .gitignore: Remove some references to files in subdirectories.
* build-aux/.gitignore, doc/.gitignore, lib/.gitignore: New files.
* m4/.gitignore, po/.gitignore, src/.gitignore: Likewise.

17 years ago* src/copy.c (copy_internal): Add a comment saying why we prefer
Jim Meyering [Sat, 21 Oct 2006 07:16:19 +0000 (07:16 +0000)]
* src/copy.c (copy_internal): Add a comment saying why we prefer
mknod over mkfifo.

17 years agoEnable an fts optimization (call lstat only for directories,
Jim Meyering [Fri, 20 Oct 2006 23:01:59 +0000 (23:01 +0000)]
Enable an fts optimization (call lstat only for directories,
on some file system types) also with the --preserve-root option
of chown or chgrp.
* src/chown-core.c (change_file_owner): Compare fts_statp-based
dev/ino against root dev/ino only for directories.
(chown_files): Don't let the root_dev_ino setting influence whether
we use FTS_NOSTAT: fts always sets *fts_statp for a directory.

17 years ago* src/od.c (usage): Change description of default to use "-w16",
Jim Meyering [Fri, 20 Oct 2006 15:31:11 +0000 (15:31 +0000)]
* src/od.c (usage): Change description of default to use "-w16",
not the now-invalid "-w 16" syntax.  From Dan Jacobson.

17 years ago* bootstrap: Add names to each .gitignore file (if it exists)
Jim Meyering [Fri, 20 Oct 2006 10:08:05 +0000 (10:08 +0000)]
* bootstrap: Add names to each .gitignore file (if it exists)
as well as to .cvsignore.

17 years ago.
Jim Meyering [Thu, 19 Oct 2006 11:54:43 +0000 (11:54 +0000)]
.

17 years ago* POTFILES.in: Also include lib/regcomp.c, since it too uses gettext.
Jim Meyering [Thu, 19 Oct 2006 08:54:01 +0000 (08:54 +0000)]
* POTFILES.in: Also include lib/regcomp.c, since it too uses gettext.

17 years ago* Makefile.maint (po-check): This rule didn't detect the new use
Jim Meyering [Thu, 19 Oct 2006 08:51:27 +0000 (08:51 +0000)]
* Makefile.maint (po-check): This rule didn't detect the new use
of "gettext" (as opposed to the use of "_" everywhere else) in
lib/xstrtol.h.  Adjust the grep regexp so that now it does.

17 years agotypo
Jim Meyering [Thu, 19 Oct 2006 08:49:30 +0000 (08:49 +0000)]
typo

17 years ago* POTFILES.in: Add lib/xstrtol.h.
Paul Eggert [Thu, 19 Oct 2006 07:53:42 +0000 (07:53 +0000)]
* POTFILES.in: Add lib/xstrtol.h.

17 years ago* src/copy.c (copy_reg): Rewrite slightly to avoid duplicte code
Paul Eggert [Thu, 19 Oct 2006 05:22:54 +0000 (05:22 +0000)]
* src/copy.c (copy_reg): Rewrite slightly to avoid duplicte code
when opening dst_name.
(copy_reg, copy_internal): Use (SYSCALL != 0) rather than plain
(SYSCALL) to test for failure in a system call.

17 years ago* src/copy.c (copy_internal): Use mknod rather than mkfifo to copy
Paul Eggert [Wed, 18 Oct 2006 22:33:06 +0000 (22:33 +0000)]
* src/copy.c (copy_internal): Use mknod rather than mkfifo to copy
a fifo.  This preserves the special mode bits on Solaris 10, which
is compatible with what Solaris 10 cp -R does.

17 years ago* src/copy.c (copy_internal): Remove redundant and confusing local
Paul Eggert [Wed, 18 Oct 2006 21:02:27 +0000 (21:02 +0000)]
* src/copy.c (copy_internal): Remove redundant and confusing local
variable src_type.

17 years ago* src/copy.c (copy_internal): Don't pass mkdir a mode greater than
Paul Eggert [Wed, 18 Oct 2006 20:56:38 +0000 (20:56 +0000)]
* src/copy.c (copy_internal): Don't pass mkdir a mode greater than
7777.  This matches historical 'cp' behavior and avoids some
(though not all) implementation-defined behavior of mkdir.
* src/cp.c (make_dir_parents_private): Likewise.
* src/copy.c (copy_internal): Don't pass 'open' a mode greater
than 777.  This is required by POSIX.  It doesn't make any difference
in actual behavior on any host that I know of.

17 years ago*** empty log message ***
Jim Meyering [Tue, 17 Oct 2006 20:12:05 +0000 (20:12 +0000)]
*** empty log message ***

17 years ago* src/dd.c (usage): Use two spaces (not one) to separate the
Jim Meyering [Tue, 17 Oct 2006 13:51:47 +0000 (13:51 +0000)]
* src/dd.c (usage): Use two spaces (not one) to separate the
"fdatasync" option string from its description, so help2man formats
the derived man page properly.  Reported by Samuel Thibault
in <http://bugs.debian.org/393649>.

17 years ago*** empty log message ***
Jim Meyering [Tue, 17 Oct 2006 13:48:27 +0000 (13:48 +0000)]
*** empty log message ***

17 years ago* .x-sc_trailing_blank: Remove names of files that are no longer
Jim Meyering [Mon, 16 Oct 2006 20:20:03 +0000 (20:20 +0000)]
* .x-sc_trailing_blank: Remove names of files that are no longer
version-controlled.

17 years ago* src/groups.sh (version): Reword message to match the other programs.
Paul Eggert [Mon, 16 Oct 2006 16:53:22 +0000 (16:53 +0000)]
* src/groups.sh (version): Reword message to match the other programs.
Problem reported by Eric Blake.

17 years ago[m4/ChangeLog]
Paul Eggert [Sun, 15 Oct 2006 06:17:45 +0000 (06:17 +0000)]
[m4/ChangeLog]
* sha512.m4 (gl_SHA512): Add u64.h to AC_LIBSOURCES.
[lib/ChangeLog]
Port sha512sum to hosts where uintmax_t is only 32 bits, e.g.,
HP/Tandom NonStop OSS circa 2005 has 32-bit uintmax_t, 64-bit intmax_t.
* u64.h: New file.
* sha512.c (SWAP, sha512_init_ctx, sha384_init_ctx, sha512_read_ctx):
(sha384_read_ctx, sha512_conclude_ctx, sha512_process_bytes):
(sha512_round_constants, F2, F1, sha512_process_block):
(S0, S1, SS0, SS1, M, R):
Rewrite to use u64.h instead of assuming uint64_t.
* sha512.h: Include u64.h rather than stdint.h.
(rol64): Remove; moved to u64.h and renamed to u64rol.

17 years ago* Makefile.maint (headers_with_interesting_macro_defs): Define.
Jim Meyering [Sat, 14 Oct 2006 12:17:24 +0000 (12:17 +0000)]
* Makefile.maint (headers_with_interesting_macro_defs): Define.
(.re-defmac, sc_always_defined_macros): New rules.

17 years ago*** empty log message ***
Jim Meyering [Sat, 14 Oct 2006 12:15:13 +0000 (12:15 +0000)]
*** empty log message ***

17 years ago* tests/cp/Makefile.am (TESTS): Add backup-dir.
Jim Meyering [Sat, 14 Oct 2006 12:14:53 +0000 (12:14 +0000)]
* tests/cp/Makefile.am (TESTS): Add backup-dir.

17 years ago* src/system.h (EXIT_FAILURE, EXIT_SUCCESS): Remove definitions.
Jim Meyering [Sat, 14 Oct 2006 12:12:44 +0000 (12:12 +0000)]
* src/system.h (EXIT_FAILURE, EXIT_SUCCESS): Remove definitions.
Instead, include "exit.h".  This hereby retires the work-around for
"Sony NEWS-OS Release 4.0C"'s bug due to "#define EXIT_FAILURE 0".

17 years ago* src/cksum.c (uint_fast32_t): Don't define.
Jim Meyering [Sat, 14 Oct 2006 12:04:31 +0000 (12:04 +0000)]
* src/cksum.c (uint_fast32_t): Don't define.
Instead, include <stdint.h>.

17 years agoclean up
Jim Meyering [Sat, 14 Oct 2006 12:03:50 +0000 (12:03 +0000)]
clean up

17 years ago* src/pinky.c: Don't include stat-macros.h; system.h already does it.
Jim Meyering [Sat, 14 Oct 2006 12:02:14 +0000 (12:02 +0000)]
* src/pinky.c: Don't include stat-macros.h; system.h already does it.

17 years ago* src/pinky.c (S_IWGRP): Don't define.
Jim Meyering [Sat, 14 Oct 2006 10:38:54 +0000 (10:38 +0000)]
* src/pinky.c (S_IWGRP): Don't define.
Instead, include "stat-macros.h".

17 years ago[ChangeLog]
Jim Meyering [Sat, 14 Oct 2006 09:51:58 +0000 (09:51 +0000)]
[ChangeLog]
* Makefile.cfg: Remove cruft that's now handled via bootstrap.
* Makefile.maint: Likewise, remove these targets/rules/variables:
(local_updates, update, cvs-update, wget_files, get-targets): Remove.
(cvs_files, wget-update, automake_repo): Likewise.
Move the comment about cvsu to build-aux/vc-list-files,
where cvsu is actually used.
[build-aux/ChangeLog]
* vc-list-files: Add a comment about cvsu.

17 years ago* Makefile.maint (cvs-update): Use $(CVS), not "cvs".
Jim Meyering [Sat, 14 Oct 2006 09:39:34 +0000 (09:39 +0000)]
* Makefile.maint (cvs-update): Use $(CVS), not "cvs".

17 years ago* vc-list-files: Don't filter git-ls-files output through cut.
Jim Meyering [Sat, 14 Oct 2006 09:31:27 +0000 (09:31 +0000)]
* vc-list-files: Don't filter git-ls-files output through cut.

17 years agoWork also when the working directory (with e.g. coreutils sources)
Jim Meyering [Sat, 14 Oct 2006 08:51:27 +0000 (08:51 +0000)]
Work also when the working directory (with e.g. coreutils sources)
is version controlled with git, rather than CVS.
* bootstrap (CVS_only_file): Test for the existence of README-cvs,
rather than CVS.
In messages and comments, say e.g., "checked-out sources",
rather than "CVS sources".
(version_controlled_file): New function.  Work for git as well as
for CVS.  Don't use grep's -q option.
(slurp): Call it here, in place of CVS-specific code.

17 years ago* NEWS: cp -r --backup dir1 dir2, would rename an existing dir1/dir2
Jim Meyering [Sat, 14 Oct 2006 05:20:27 +0000 (05:20 +0000)]
* NEWS: cp -r --backup dir1 dir2, would rename an existing dir1/dir2
to dir1/dir2~.
* src/copy.c (copy_internal): Although we do create a backup of each
destination directory when in move mode, don't do that when copying.
Reported by Peter Breitenlohner, in
<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8616>.
* tests/cp/backup-dir: New file.  Test for the above.

17 years ago*** empty log message ***
Jim Meyering [Sat, 14 Oct 2006 05:06:38 +0000 (05:06 +0000)]
*** empty log message ***

17 years agoMore chown/chgrp dereferencing-related fixes.
Jim Meyering [Fri, 13 Oct 2006 21:11:53 +0000 (21:11 +0000)]
More chown/chgrp dereferencing-related fixes.
* src/chown-core.c (change_file_owner): Don't use fts_statp if
we're dereferencing symlinks.
Reverse conjuncts, so that we use dereference file_stats
(aka ent->fts_statp) only *after* we've confirmed that
chopt->affect_symlink_referent is true.  Otherwise, we might
use ent->fts_statp uninitialized.
Don't turn on FTS_NOSTAT when dereferencing symlinks.
* tests/chown/deref: Update the expected diagnostic, now that
this test case (trying to use "chown --dereference ..." on a
dangling symlink) takes a different code path.

17 years agoSync from Bison, as follows:
Paul Eggert [Fri, 13 Oct 2006 19:07:21 +0000 (19:07 +0000)]
Sync from Bison, as follows:

2006-10-01  Paul Eggert  <eggert@cs.ucla.edu>

Fix problems with translating English-language diagnostics.
* bootstrap: Fix bug introduced in recent bootstrap changes, with
respect to bison-runtime pot generation.  The YY_ stuff
wasn't being captured.

17 years ago* NEWS: Mention the above.
Jim Meyering [Fri, 13 Oct 2006 19:05:07 +0000 (19:05 +0000)]
* NEWS: Mention the above.

17 years ago* src/chown-core.c (change_file_owner): Use fstatat, not stat,
Jim Meyering [Fri, 13 Oct 2006 18:51:08 +0000 (18:51 +0000)]
* src/chown-core.c (change_file_owner): Use fstatat, not stat,
now that we're using fts_open with FTS_CWDFD.
* tests/chgrp/posix-H: Add --preserve-root to an invocation of
chgrp, to exercise the above fix.

17 years ago* src/du-tests: Clean up a little, though it's still not portable.
Jim Meyering [Fri, 13 Oct 2006 15:25:37 +0000 (15:25 +0000)]
* src/du-tests: Clean up a little, though it's still not portable.

17 years ago* .vg-suppressions: Add 3 more for debian unstable.
Jim Meyering [Fri, 13 Oct 2006 14:40:34 +0000 (14:40 +0000)]
* .vg-suppressions: Add 3 more for debian unstable.

17 years ago* tests/ls/Test.pm: Remove long-unused file.
Jim Meyering [Fri, 13 Oct 2006 14:16:39 +0000 (14:16 +0000)]
* tests/ls/Test.pm: Remove long-unused file.
Suggestions from Bruno Haible.

17 years ago* Makefile.am (EXTRA_DIST): Add bootstrap.conf.
Jim Meyering [Fri, 13 Oct 2006 14:13:24 +0000 (14:13 +0000)]
* Makefile.am (EXTRA_DIST): Add bootstrap.conf.
Suggestion from Bruno Haible.

17 years ago* Makefile.am (libcoreutils_a_LIBADD): Append $(LIBOBJS),
Jim Meyering [Thu, 12 Oct 2006 21:13:24 +0000 (21:13 +0000)]
* Makefile.am (libcoreutils_a_LIBADD): Append $(LIBOBJS),
to accommodate the latest version of gnulib-tool.
(libcoreutils_a_DEPENDENCIES): Likewise.
From Bruno Haible.

17 years ago* Makefile.am (THANKS-to-translators): Add missing $(srcdir).
Jim Meyering [Thu, 12 Oct 2006 21:10:43 +0000 (21:10 +0000)]
* Makefile.am (THANKS-to-translators): Add missing $(srcdir).
(MAINTAINERCLEANFILES): Add .kludge-stamp.
* man/Makefile.am (MAINTAINERCLEANFILES): Typo $(dist_man_MANS)
instead of $(man_MANS).

2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

17 years ago* configure.ac: Avoid compiler warnings about default return
Jim Meyering [Thu, 12 Oct 2006 20:39:33 +0000 (20:39 +0000)]
* configure.ac: Avoid compiler warnings about default return
type in function definitions and unused variables in tests.
* src/who.c (print_user) [HAVE_UT_HOST]: hostlen is only needed
if this is #defined.

17 years ago[ChangeLog]
Jim Meyering [Thu, 12 Oct 2006 20:37:02 +0000 (20:37 +0000)]
[ChangeLog]
* configure.ac: Reflect s/gl_MACROS/coreutils_MACROS/ renaming.
Call gl_INIT directly, rather than through the above.
[m4/ChangeLog]
* jm-macros.m4 (coreutils_MACROS): Rename from gl_MACROS, now that
most of the gnulib macros have migrated into gnulib.
Don't call gl_INIT here (now it's called from configure.ac, directly).

17 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.

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

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

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

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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>.

17 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>.

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

17 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.

17 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.

17 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.

17 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.

17 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).

17 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.

17 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.

17 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.

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

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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

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

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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>.

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