platform/upstream/coreutils.git
17 years ago* Makefile.maint (announcement): Don't use now-removed
Jim Meyering [Wed, 22 Nov 2006 11:38:16 +0000 (12:38 +0100)]
* Makefile.maint (announcement): Don't use now-removed
--release-archive-directory=... option.

17 years ago* announce-gen: Remove unused --release-archive-directory option.
Jim Meyering [Wed, 22 Nov 2006 11:35:02 +0000 (12:35 +0100)]
* announce-gen: Remove unused --release-archive-directory option.
(print_news_deltas): Accept new adjective, "Noteworthy", in addition
to the old "Major".
Match version numbers in NEWS using tighter regular expressions.
(main): Require the --gpg-key-id=ID option.

17 years ago* NEWS: Mention the three noteworthy changes, all fixed via gnulib.
Jim Meyering [Wed, 22 Nov 2006 09:14:15 +0000 (10:14 +0100)]
* NEWS: Mention the three noteworthy changes, all fixed via gnulib.

17 years ago* .cvsignore, .gitignore: Add fstat.c.
Jim Meyering [Wed, 22 Nov 2006 09:10:30 +0000 (10:10 +0100)]
* .cvsignore, .gitignore: Add fstat.c.

17 years ago* tests/rm/one-file-system: Upon setup failure (e.g., mount failure),
Jim Meyering [Tue, 21 Nov 2006 08:32:55 +0000 (09:32 +0100)]
* tests/rm/one-file-system: Upon setup failure (e.g., mount failure),
skip the test rather than failing.  Reported by Michael Deutschmann.

17 years ago* tests/rm/fail-eperm: Use the "(exit N); exit N" idiom,
Jim Meyering [Tue, 21 Nov 2006 08:03:27 +0000 (09:03 +0100)]
* tests/rm/fail-eperm: Use the "(exit N); exit N" idiom,
rather than just "exit N".

17 years agoArrange for "make check-root" to run the new root-only test.
Jim Meyering [Mon, 20 Nov 2006 23:37:03 +0000 (00:37 +0100)]
Arrange for "make check-root" to run the new root-only test.
* tests/Makefile.am (t7): New target, to run tests/ls/nameless-uid.
(all_t): Add t7.

17 years agoAdd a root-only test for today's lib/idcache.c fix.
Jim Meyering [Mon, 20 Nov 2006 10:31:05 +0000 (11:31 +0100)]
Add a root-only test for today's lib/idcache.c fix.
* tests/ls/nameless-uid: New file.
* tests/ls/Makefile.am (TESTS): Add nameless-uid.
(TESTS_ENVIRONMENT): Add PERL to the list.

17 years ago* tests/tail-2/assert-2: Mark as a very-expensive test, because I
Jim Meyering [Sun, 19 Nov 2006 22:19:06 +0000 (23:19 +0100)]
* tests/tail-2/assert-2: Mark as a very-expensive test, because I
find the 7-second sleep annoyingly long.  Besides, this test is
probably far too specific and timing sensitive ever to trigger again.
* tests/tail-2/assert: Likewise.

17 years agoPost-release version change.
Jim Meyering [Sun, 19 Nov 2006 18:44:23 +0000 (19:44 +0100)]
Post-release version change.
* NEWS: Add a line for 6.6-pre.
* configure.ac (AC_INIT): Bump to 6.6 and add "-pre" suffix.

17 years ago.prev-version: Record previous version: 6.5.
Jim Meyering [Sun, 19 Nov 2006 13:10:48 +0000 (14:10 +0100)]
.prev-version: Record previous version: 6.5.

17 years agoVersion 6.5. COREUTILS-6_5 v6.5
Jim Meyering [Sun, 19 Nov 2006 09:58:55 +0000 (10:58 +0100)]
Version 6.5.
* NEWS: Record release date.  Remove "-cvs" suffix.
* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.

17 years ago"ln --backup f f" now produces a sensible diagnostic
Jim Meyering [Sat, 18 Nov 2006 19:19:16 +0000 (20:19 +0100)]
"ln --backup f f" now produces a sensible diagnostic

17 years ago"ln --backup f f" produces a misleading diagnostic:
Jim Meyering [Sat, 18 Nov 2006 19:00:39 +0000 (20:00 +0100)]
"ln --backup f f" produces a misleading diagnostic:
ln: creating hard link `f' => `f': No such file or directory
* src/ln.c (do_link): Give a better diagnostic in this unusual case.
(do_link): Rename local: s/lstat_ok/dest_lstat_ok/.
* tests/ln/Makefile.am (TESTS): Add hard-backup.
* tests/ln/hard-backup: New test for the above.

17 years ago* bootstrap.conf (gnulib_modules): Add sys_stat, since we use it directly too.
Paul Eggert [Thu, 16 Nov 2006 18:51:23 +0000 (19:51 +0100)]
* bootstrap.conf (gnulib_modules): Add sys_stat, since we use it directly too.
* lib/.cvsignore, lib/.gitignore: Add root-dev-ino.c, root-dev-ino.h.
* m4/.cvsignore, m4/.gitignore: Add root-dev-ino.m4.
* src/ls.c (DIRED_FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS):
Omit unnecessary parenthesization of args.
* src/od.c (EQUAL_BLOCKS): Likewise.
* src/system.h (STREQ, ASSIGN_STRDUPA): Likewise.

17 years ago* tests/tail-2/append-only: If chattr +a fails, exit 77 (to tell
Jim Meyering [Thu, 16 Nov 2006 09:05:36 +0000 (10:05 +0100)]
* tests/tail-2/append-only: If chattr +a fails, exit 77 (to tell
automake we're skipping this test), and give a diagnostic to tell
the user the same thing.  Reported by Mike Grayson.

17 years agochange log date to be today's
Jim Meyering [Thu, 16 Nov 2006 08:58:49 +0000 (09:58 +0100)]
change log date to be today's

17 years agoArrange to install manpages only for tools that are installed.
Ralf Wildenhues [Thu, 16 Nov 2006 08:57:34 +0000 (09:57 +0100)]
Arrange to install manpages only for tools that are installed.

* man/Makefile.am (dist_man_MANS): Replace all optional manpages
with `$(MAN)', computed at configure time; also, list them ...
(optional_mans): ... in this new variable.
(max_aux, EXTRA_DIST): Ensure that we distribute all manpages.

17 years ago* src/csplit.c (load_buffer): Plug an inconsequential leak.
Jim Meyering [Thu, 16 Nov 2006 08:16:08 +0000 (09:16 +0100)]
* src/csplit.c (load_buffer): Plug an inconsequential leak.

17 years agoHelp valgrind see that there is no leak in dd.c.
Jim Meyering [Thu, 16 Nov 2006 08:15:47 +0000 (09:15 +0100)]
Help valgrind see that there is no leak in dd.c.
* src/dd.c (dd_copy): Declare real_buf and real_obuf to be static,
so we need not free them at all.  This is easier than freeing
both buffers at each of the early "return"s.

18 years ago* .x-po-check: Exclude gl/ files. Otherwise, po-check would
Jim Meyering [Wed, 15 Nov 2006 09:37:02 +0000 (10:37 +0100)]
* .x-po-check: Exclude gl/ files.  Otherwise, po-check would
complain that some of gl/lib/*.[ch] are not listed in POTFILES.in.

18 years ago* gl/m4/root-dev-ino.m4: Now that this is part of a real "module",
Jim Meyering [Tue, 14 Nov 2006 13:09:34 +0000 (14:09 +0100)]
* gl/m4/root-dev-ino.m4: Now that this is part of a real "module",
remove the now-unnecessary use of AC_LIBSOURCES.

18 years agoAdapt to new version of gnulib-tool.
Jim Meyering [Tue, 14 Nov 2006 13:02:18 +0000 (14:02 +0100)]
Adapt to new version of gnulib-tool.
* gl/modules/root-dev-ino: New file.
* lib/root-dev-ino.c, lib/root-dev-ino.h: Move these files ...
* gl/lib/root-dev-ino.c, gl/lib/root-dev-ino.h: ... to here.
* m4/root-dev-ino.m4: Move this file ...
* gl/m4/root-dev-ino.m4: ... to here.
* bootstrap.conf (gnulib_modules): Add root-dev-ino.

18 years ago* readlink-stub.c, lstat-stub.c: Remove now-unused files.
Jim Meyering [Tue, 14 Nov 2006 08:38:32 +0000 (09:38 +0100)]
* readlink-stub.c, lstat-stub.c: Remove now-unused files.

18 years ago* src/sort.c (insertkey): Use xmemdup, rather than xmalloc+assignment.
Jim Meyering [Mon, 13 Nov 2006 18:15:43 +0000 (19:15 +0100)]
* src/sort.c (insertkey): Use xmemdup, rather than xmalloc+assignment.
From Paul Eggert.

18 years agoPlug another technically-unimportant leak in sort.
Jim Meyering [Mon, 13 Nov 2006 14:19:22 +0000 (15:19 +0100)]
Plug another technically-unimportant leak in sort.
* src/sort.c (main): Don't allocate memory for each new key here.
(insertkey): Allocate memory for each key here, instead.
(key_init): Rename from new_key.  Don't allocate.

18 years ago* src/sort.c (main): Plug a tiny memory leak.
Jim Meyering [Mon, 13 Nov 2006 14:06:15 +0000 (15:06 +0100)]
* src/sort.c (main): Plug a tiny memory leak.
Move declaration of local "minus" down to be nearer point of use.

18 years agoMore automatically-added ignorables.
Jim Meyering [Sun, 12 Nov 2006 21:45:14 +0000 (22:45 +0100)]
More automatically-added ignorables.

18 years ago* tests/du/Makefile.am (TESTS): Add inacc-dest.
Jim Meyering [Sun, 12 Nov 2006 18:58:58 +0000 (19:58 +0100)]
* tests/du/Makefile.am (TESTS): Add inacc-dest.

18 years ago* NEWS: Mention this bug fix.
Jim Meyering [Sun, 12 Nov 2006 18:13:32 +0000 (19:13 +0100)]
* NEWS: Mention this bug fix.

18 years agodu would exit early, when encountering an inaccessible directory
Jim Meyering [Sun, 12 Nov 2006 17:42:24 +0000 (18:42 +0100)]
du would exit early, when encountering an inaccessible directory
Reported by Mike Frysinger, in
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/8831
* tests/du/inacc-dest: New test, based on an example from Mike Frysinger.
* tests/chgrp/no-x: Remove the "fts_read failed: ..."
diagnostic from the expected output when using native fdopendir.
* tests/chmod/no-x: Likewise.
* tests/du/no-x: Likewise.

18 years ago* Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
Jim Meyering [Sun, 12 Nov 2006 17:41:01 +0000 (18:41 +0100)]
* Makefile.maint (sc_cast_of_x_alloc_return_value): Add an exclusion
for xalloc.h itself.

18 years agoAvoid false-positive when testing via valgrind.
Jim Meyering [Sun, 12 Nov 2006 07:22:46 +0000 (08:22 +0100)]
Avoid false-positive when testing via valgrind.
* tests/mv/atomic: Grep strace output for a more specific pattern
than just "unlink", since that got a false positive when testing
under valgrind: unlink("/tmp/valgrind_proc_9657_cmdline_A51E9991") = 0
* tests/mv/Makefile.am (TESTS_ENVIRONMENT): Define EGREP.

18 years agoupdate .cvsignore/.gitignore files
Jim Meyering [Mon, 30 Oct 2006 08:10:56 +0000 (09:10 +0100)]
update .cvsignore/.gitignore files

18 years ago* Makefile.maint (patch-check): Make it easier to regenerate
Jim Meyering [Sat, 28 Oct 2006 16:23:30 +0000 (18:23 +0200)]
* Makefile.maint (patch-check): Make it easier to regenerate
the src/c99-to-c89.diff file.  E.g., I do this:
make patch-check REGEN_PATCH=1; ediff src/c99-to-c89.diff new-diff

18 years ago* src/c99-to-c89.diff: Update to reflect new offsets in rm.c.
Jim Meyering [Sat, 28 Oct 2006 16:21:13 +0000 (18:21 +0200)]
* src/c99-to-c89.diff: Update to reflect new offsets in rm.c.

18 years ago* coreutils.texi (wc invocation): When giving the order in which
Jim Meyering [Sat, 28 Oct 2006 16:19:05 +0000 (18:19 +0200)]
* coreutils.texi (wc invocation): When giving the order in which
the various "counts" are listed, also mention "maximum line length".
Prompted by a report from Vincent LeFevre.

18 years ago* src/system.h (ftello): Add a compile-time check for the highly
Jim Meyering [Thu, 26 Oct 2006 13:16:41 +0000 (15:16 +0200)]
* src/system.h (ftello): Add a compile-time check for the highly
unlikely condition of off_t narrower than long int, rather than
handling it at run time.  Based on a patch from Paul Eggert.

18 years agoAvoid a shell bug in Tru64 4.0 sh's handling of double-quoted strings.
Jim Meyering [Thu, 26 Oct 2006 09:03:30 +0000 (11:03 +0200)]
Avoid a shell bug in Tru64 4.0 sh's handling of double-quoted strings.
[patch by Paul Eggert]

* tests/chmod/c-option: When double-quoting part of a word, prefer
to double-quote the whole word.  This is a bit easier to read (at
least for me), and in some cases it avoids a shell bug with Tru64
4.0 sh reported by Nelson H. F. Beebe.  For example, instead of
"$abs_srcdir"/../setgid-check we now write
"$abs_srcdir/../setgid-check".

* tests/cp/cp-parents: Likewise.
* tests/du/inaccessible-cwd: Likewise.
* tests/du/long-from-unreadable: Likewise.
* tests/install/basic-1: Likewise.
* tests/install/trap: Likewise.
* tests/misc/close-stdout: Likewise.
* tests/mkdir/concurrent-1: Likewise.
* tests/mkdir/p-1: Likewise.
* tests/mkdir/p-3: Likewise.
* tests/mkdir/parents: Likewise.
* tests/mkdir/perm: Likewise.
* tests/readlink/can-e: Likewise.
* tests/readlink/can-f: Likewise.
* tests/readlink/can-m: Likewise.
* tests/rm/inaccessible: Likewise.
* tests/rm/unread3: Likewise.
* tests/touch/no-create-missing: Likewise.

* lib/.cvsignore: Add uinttostr.c.

18 years agoPortability to Tru64 V4.0.
Jim Meyering [Wed, 25 Oct 2006 09:47:06 +0000 (11:47 +0200)]
Portability to Tru64 V4.0.
* src/system.h (ftello) [!HAVE_FSEEKO && !defined ftello]:
Define inline replacement function.
This (along with a yesterday's fix for autoconf's
_AC_SYS_LARGEFILE_MACRO_VALUE macro) makes it so coreutils
now builds once more on Tru64 V4.0.  Reported by Nelson Beebe.

18 years ago* src/cat.c (infile): Add "const" to declaration.
Jim Meyering [Tue, 24 Oct 2006 23:05:30 +0000 (01:05 +0200)]
* src/cat.c (infile): Add "const" to declaration.
* src/csplit.c (prefix): Likewise.
* src/printf.c (cfcc_msg): Likewise.
* src/tail.c (valid_file_spec): Likewise.
* src/cut.c (cut_file): Likewise, for a parameter.
* src/expr.c (str_value): Likewise.
* src/fold.c (fold_file): Likewise.
* src/pr.c (init_header): Likewise.
* src/dircolors.c (dc_parse_stream): Likewise, for a local.
* src/tr.c (make_printable_str): Likewise.
* src/nl.c (body_type, header_type, footer_type, current_type):
(separator_str, build_type_arg, nl_file): Likewise, for many.
* src/paste.c (main): Don't assign a read-only string to 'optarg'.
* src/tac.c (separator, tac_seekable, copy_to_temp): Likewise.

18 years ago* tests/sample-test: Update copyright year list to include only
Jim Meyering [Tue, 24 Oct 2006 22:16:13 +0000 (00:16 +0200)]
* tests/sample-test: Update copyright year list to include only
the current year, since this is what I'll want in any new test.

18 years ago* src/c99-to-c89.diff: Update to reflect new offsets.
Jim Meyering [Tue, 24 Oct 2006 22:14:51 +0000 (00:14 +0200)]
* src/c99-to-c89.diff: Update to reflect new offsets.

18 years agonew feature: rm accepts new option: --one-file-system
Jim Meyering [Tue, 24 Oct 2006 22:01:33 +0000 (00:01 +0200)]
new feature: rm accepts new option: --one-file-system
Suggested by Steve McIntyre in <http://bugs.debian.org/392925>.
* src/remove.h (struct rm_options) [one_file_system]: New member.
* src/rm.c (rm_option_init): Initialize it.
(usage): Document the option.
* src/mv.c (rm_option_init): Likewise.
* src/remove.c (remove_dir): With --one-file-system and --recursive,
for each directory command line argument, do not affect a file system
different from that of the starting directory.  And give a diagnostic.
* src/rm.c (ONE_FILE_SYSTEM): New enum.
(main): Handle new option.
* tests/rm/one-file-system: Test the above.
* tests/rm/Makefile.am (TESTS): Add one-file-system.
* tests/Makefile.am (check-root): Add the rm/one-file-system
test to the list.
(EXTRA_DIST): Add other-fs-tmpdir.

* tests/mv/setup: Removed.  Renamed to...
* tests/other-fs-tmpdir: ...this new file.
* tests/mv/Makefile.am (EXTRA_DIST): Remove setup.
* tests/mv/acl: Reflect renaming: use ../other-fs-tmpdir.
* tests/mv/backup-is-src: Likewise.
* tests/mv/hard-link-1: Likewise.
* tests/mv/leak-fd: Likewise.
* tests/mv/mv-special-1: Likewise.
* tests/mv/part-fail: Likewise.
* tests/mv/part-hardlink: Likewise.
* tests/mv/part-rename: Likewise.
* tests/mv/part-symlink: Likewise.
* tests/mv/partition-perm: Likewise.
* tests/mv/to-symlink: Likewise.
* tests/mv/into-self-2: Likewise.

[doc/ChangeLog]
* coreutils.texi (rm invocation): Describe --one-file-system.

18 years agoDon't let a failure in one test stop "make -k".
Jim Meyering [Tue, 24 Oct 2006 06:43:58 +0000 (08:43 +0200)]
Don't let a failure in one test stop "make -k".
* tests/Makefile.am (t1 t2 t3 t4 t5): New targets.
(check-root): Depend on them, rather than executing the five
commands in a single rule.  Reported by Greg Schafer.

18 years ago* Makefile.maint (alpha beta major): Use a better log message.
Jim Meyering [Mon, 23 Oct 2006 16:39:49 +0000 (18:39 +0200)]
* Makefile.maint (alpha beta major): Use a better log message.
Suggested by Bob Proulx.

18 years ago* tests/misc/pwd-long: Whoops. Don't exec the perl script. Otherwise, the sh-trap...
Jim Meyering [Mon, 23 Oct 2006 10:22:15 +0000 (12:22 +0200)]
* tests/misc/pwd-long: Whoops.  Don't exec the perl script.  Otherwise, the sh-trap-based
clean-up code isn't run.

18 years ago* tests/misc/pwd-long: Undo last change, since it made Perl invoke
Jim Meyering [Mon, 23 Oct 2006 09:52:48 +0000 (11:52 +0200)]
* tests/misc/pwd-long: Undo last change, since it made Perl invoke
pwd via a shell.  Instead, ensure that the absolute name of the
pwd binary consists solely of reasonable characters.

18 years ago* NEWS: Add a line for 6.5-cvs.
Jim Meyering [Mon, 23 Oct 2006 05:59:04 +0000 (07:59 +0200)]
* NEWS: Add a line for 6.5-cvs.
* configure.ac (AC_INIT): Bump to 6.5 and add "-cvs" suffix.

18 years ago.
Jim Meyering [Sun, 22 Oct 2006 21:55:14 +0000 (23:55 +0200)]
.

18 years agoRemove -cvs suffix here, too. COREUTILS-6_4 v6.4
Jim Meyering [Sun, 22 Oct 2006 21:41:05 +0000 (23:41 +0200)]
Remove -cvs suffix here, too.

18 years agoadd snprintf-related files to .gitignore
Jim Meyering [Sun, 22 Oct 2006 21:39:45 +0000 (23:39 +0200)]
add snprintf-related files to .gitignore

18 years agoVersion 6.4.
Jim Meyering [Sun, 22 Oct 2006 20:21:26 +0000 (22:21 +0200)]
Version 6.4.

* NEWS: Record the 6.4 release date.
* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.

18 years ago* Makefile.maint: Complete the adaptation to function with a working
Jim Meyering [Sun, 22 Oct 2006 20:16:37 +0000 (22:16 +0200)]
* Makefile.maint: Complete the adaptation to function with a working
directory that is using git (rather than cvs) for version control.

18 years ago* tests/chmod/c-option: Double-quote instances of `$abs_srcdir'.
Jim Meyering [Sun, 22 Oct 2006 20:12:13 +0000 (22:12 +0200)]
* tests/chmod/c-option: Double-quote instances of `$abs_srcdir'.
* tests/cp/cp-parents: Likewise.
* tests/mkdir/parents: Likewise.
* tests/mkdir/perm: Likewise.

18 years ago* tests/sample-test: Quote variables containing absolute build
Jim Meyering [Sun, 22 Oct 2006 17:37:31 +0000 (19:37 +0200)]
* tests/sample-test: Quote variables containing absolute build
tree paths.  In the cleanup trap, make sure `cd' succeeds before
`chmod'ing and `rm'ing the temporary files.
* tests/chgrp/basic: Likewise.
* tests/chgrp/deref: Likewise.
* tests/chgrp/no-x: Likewise.
* tests/chgrp/posix-H: Likewise.
* tests/chgrp/recurse: Likewise.
* tests/chmod/c-option: Likewise.
* tests/chmod/equal-x: Likewise.
* tests/chmod/equals: Likewise.
* tests/chmod/inaccessible: Likewise.
* tests/chmod/no-x: Likewise.
* tests/chmod/octal: Likewise.
* tests/chmod/setgid: Likewise.
* tests/chmod/umask-x: Likewise.
* tests/chmod/usage: Likewise.
* tests/chown/basic: Likewise.
* tests/chown/deref: Likewise.
* tests/chown/separator: Likewise.
* tests/cp/acl: Likewise.
* tests/cp/backup-1: Likewise.
* tests/cp/backup-dir: Likewise.
* tests/cp/backup-is-src: Likewise.
* tests/cp/cp-HL: Likewise.
* tests/cp/cp-deref: Likewise.
* tests/cp/cp-i: Likewise.
* tests/cp/cp-mv-backup: Likewise.
* tests/cp/cp-parents: Likewise.
* tests/cp/deref-slink: Likewise.
* tests/cp/dir-rm-dest: Likewise.
* tests/cp/dir-slash: Likewise.
* tests/cp/dir-vs-file: Likewise.
* tests/cp/fail-perm: Likewise.
* tests/cp/into-self: Likewise.
* tests/cp/link: Likewise.
* tests/cp/link-no-deref: Likewise.
* tests/cp/link-preserve: Likewise.
* tests/cp/no-deref-link1: Likewise.
* tests/cp/no-deref-link2: Likewise.
* tests/cp/no-deref-link3: Likewise.
* tests/cp/perm: Likewise.
* tests/cp/preserve-2: Likewise.
* tests/cp/r-vs-symlink: Likewise.
* tests/cp/same-file: Likewise.
* tests/cp/slink-2-slink: Likewise.
* tests/cp/sparse: Likewise.
* tests/cp/special-bits: Likewise.
* tests/cp/src-base-dot: Likewise.
* tests/cp/symlink-slash: Likewise.
* tests/dd/not-rewound: Likewise.
* tests/dd/skip-seek2: Likewise.
* tests/dd/unblock-sync: Likewise.
* tests/du/2g: Likewise.
* tests/du/8gb: Likewise.
* tests/du/basic: Likewise.
* tests/du/deref: Likewise.
* tests/du/deref-args: Likewise.
* tests/du/exclude: Likewise.
* tests/du/fd-leak: Likewise.
* tests/du/hard-link: Likewise.
* tests/du/inaccessible-cwd: Likewise.
* tests/du/long-from-unreadable: Likewise.
* tests/du/long-sloop: Likewise.
* tests/du/no-deref: Likewise.
* tests/du/no-x: Likewise.
* tests/du/restore-wd: Likewise.
* tests/du/slash: Likewise.
* tests/du/slink: Likewise.
* tests/du/trailing-slash: Likewise.
* tests/du/two-args: Likewise.
* tests/fmt/long-line: Likewise.
* tests/install/basic-1: Likewise.
* tests/install/create-leading: Likewise.
* tests/install/d-slashdot: Likewise.
* tests/install/trap: Likewise.
* tests/ln/misc: Likewise.
* tests/ln/target-1: Likewise.
* tests/ls/color-dtype-dir: Likewise.
* tests/ls/dangle: Likewise.
* tests/ls/dired: Likewise.
* tests/ls/file-type: Likewise.
* tests/ls/follow-slink: Likewise.
* tests/ls/infloop: Likewise.
* tests/ls/inode: Likewise.
* tests/ls/m-option: Likewise.
* tests/ls/no-arg: Likewise.
* tests/ls/recursive: Likewise.
* tests/ls/rt-1: Likewise.
* tests/ls/stat-dtype: Likewise.
* tests/ls/stat-failed: Likewise.
* tests/ls/stat-vs-dirent: Likewise.
* tests/misc/cat-proc: Likewise.
* tests/misc/close-stdout: Likewise.
* tests/misc/csplit: Likewise.
* tests/misc/date-sec: Likewise.
* tests/misc/false-status: Likewise.
* tests/misc/head-c: Likewise.
* tests/misc/head-pos: Likewise.
* tests/misc/mknod: Likewise.
* tests/misc/nl: Likewise.
* tests/misc/nohup: Likewise.
* tests/misc/pathchk1: Likewise.
* tests/misc/printf: Likewise.
* tests/misc/printf-hex: Likewise.
* tests/misc/pwd-long: Likewise.
* tests/misc/shuf: Likewise.
* tests/misc/sort-rand: Likewise.
* tests/misc/split-a: Likewise.
* tests/misc/split-fail: Likewise.
* tests/misc/split-l: Likewise.
* tests/misc/stat-fmt: Likewise.
* tests/misc/tac-continue: Likewise.
* tests/misc/wc-files0: Likewise.
* tests/mkdir/concurrent-1: Likewise.
* tests/mkdir/p-1: Likewise.
* tests/mkdir/p-2: Likewise.
* tests/mkdir/p-3: Likewise.
* tests/mkdir/p-slashdot: Likewise.
* tests/mkdir/p-thru-slink: Likewise.
* tests/mkdir/p-v: Likewise.
* tests/mkdir/parents: Likewise.
* tests/mkdir/perm: Likewise.
* tests/mkdir/t-slash: Likewise.
* tests/mv/acl: Likewise.
* tests/mv/atomic: Likewise.
* tests/mv/backup-dir: Likewise.
* tests/mv/childproof: Likewise.
* tests/mv/diag: Likewise.
* tests/mv/dir-file: Likewise.
* tests/mv/dir2dir: Likewise.
* tests/mv/dup-source: Likewise.
* tests/mv/hard-2: Likewise.
* tests/mv/hard-3: Likewise.
* tests/mv/hard-4: Likewise.
* tests/mv/hard-link-1: Likewise.
* tests/mv/hard-verbose: Likewise.
* tests/mv/i-2: Likewise.
* tests/mv/i-3: Likewise.
* tests/mv/i-4: Likewise.
* tests/mv/i-5: Likewise.
* tests/mv/i-link-no: Likewise.
* tests/mv/into-self-4: Likewise.
* tests/mv/leak-fd: Likewise.
* tests/mv/mv-special-1: Likewise.
* tests/mv/no-target-dir: Likewise.
* tests/mv/part-fail: Likewise.
* tests/mv/part-hardlink: Likewise.
* tests/mv/part-rename: Likewise.
* tests/mv/part-symlink: Likewise.
* tests/mv/partition-perm: Likewise.
* tests/mv/perm-1: Likewise.
* tests/mv/reply-no: Likewise.
* tests/mv/trailing-slash: Likewise.
* tests/mv/update: Likewise.
* tests/od/od-N: Likewise.
* tests/od/x8: Likewise.
* tests/readlink/can-e: Likewise.
* tests/readlink/can-f: Likewise.
* tests/readlink/can-m: Likewise.
* tests/readlink/rl-1: Likewise.
* tests/rm/cycle: Likewise.
* tests/rm/dangling-symlink: Likewise.
* tests/rm/deep-1: Likewise.
* tests/rm/dir-no-w: Likewise.
* tests/rm/dir-nonrecur: Likewise.
* tests/rm/dot-rel: Likewise.
* tests/rm/empty-inacc: Likewise.
* tests/rm/f-1: Likewise.
* tests/rm/fail-2eperm: Likewise.
* tests/rm/hash: Likewise.
* tests/rm/i-1: Likewise.
* tests/rm/i-no-r: Likewise.
* tests/rm/ignorable: Likewise.
* tests/rm/inaccessible: Likewise.
* tests/rm/interactive-always: Likewise.
* tests/rm/interactive-once: Likewise.
* tests/rm/ir-1: Likewise.
* tests/rm/isatty: Likewise.
* tests/rm/no-give-up: Likewise.
* tests/rm/r-1: Likewise.
* tests/rm/r-2: Likewise.
* tests/rm/r-3: Likewise.
* tests/rm/r-4: Likewise.
* tests/rm/readdir-bug: Likewise.
* tests/rm/rm1: Likewise.
* tests/rm/rm2: Likewise.
* tests/rm/rm3: Likewise.
* tests/rm/rm4: Likewise.
* tests/rm/rm5: Likewise.
* tests/rm/sunos-1: Likewise.
* tests/rm/unread2: Likewise.
* tests/rm/unread3: Likewise.
* tests/rmdir/fail-perm: Likewise.
* tests/rmdir/t-slash: Likewise.
* tests/shred/exact: Likewise.
* tests/shred/remove: Likewise.
* tests/sum/sysv: Likewise.
* tests/tail-2/append-only: Likewise.
* tests/tail-2/assert: Likewise.
* tests/tail-2/assert-2: Likewise.
* tests/tail-2/big-4gb: Likewise.
* tests/tail-2/fflush: Likewise.
* tests/tail-2/infloop-1: Likewise.
* tests/tail-2/proc-ksyms: Likewise.
* tests/tail-2/start-middle: Likewise.
* tests/tail-2/tail-n0f: Likewise.
* tests/tee/basic: Likewise.
* tests/tee/dash: Likewise.
* tests/touch/fail-diag: Likewise.
* tests/touch/no-create-missing: Likewise.
* tests/touch/not-owner: Likewise.
* tests/touch/obsolescent: Likewise.
* tests/touch/read-only: Likewise.
* tests/touch/relative: Likewise.

18 years agoignore po/*.po; sort .gitignore files
Jim Meyering [Sun, 22 Oct 2006 17:00:38 +0000 (19:00 +0200)]
ignore po/*.po; sort .gitignore files

18 years ago* NEWS: (cp --backup fix): Fix a typo.
Jim Meyering [Sun, 22 Oct 2006 16:59:58 +0000 (18:59 +0200)]
* NEWS: (cp --backup fix): Fix a typo.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

18 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".

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

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

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

18 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".

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

18 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".

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

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

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

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

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

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

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

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

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

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

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

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