platform/upstream/coreutils.git
17 years ago* AUTHORS: Add chcon.
Jim Meyering [Sat, 13 Jan 2007 16:49:17 +0000 (17:49 +0100)]
* AUTHORS: Add chcon.

17 years ago* src/c99-to-c89.diff: Remove trailing blanks.
Jim Meyering [Sat, 13 Jan 2007 16:22:57 +0000 (17:22 +0100)]
* src/c99-to-c89.diff: Remove trailing blanks.

17 years ago* src/chcon.c: Don't include "dirname.h". system.h already includes it.
Jim Meyering [Sat, 13 Jan 2007 16:19:16 +0000 (17:19 +0100)]
* src/chcon.c: Don't include "dirname.h". system.h already includes it.

17 years ago* gl/lib/selinux-at.c: Remove a use of HAVE_CONFIG_H.
Jim Meyering [Sat, 13 Jan 2007 16:17:19 +0000 (17:17 +0100)]
* gl/lib/selinux-at.c: Remove a use of HAVE_CONFIG_H.

17 years ago* src/c99-to-c89.diff: Handle a new c99'ism in ls.c.
Jim Meyering [Sat, 13 Jan 2007 16:13:49 +0000 (17:13 +0100)]
* src/c99-to-c89.diff: Handle a new c99'ism in ls.c.

17 years ago* src/id.c (main): Tweak id -Z diagnostic.
Jim Meyering [Sat, 13 Jan 2007 15:43:07 +0000 (16:43 +0100)]
* src/id.c (main): Tweak id -Z diagnostic.

17 years ago* POTFILES.in: Add src/chcon.c.
Jim Meyering [Sat, 13 Jan 2007 15:30:04 +0000 (16:30 +0100)]
* POTFILES.in: Add src/chcon.c.

17 years agoid: Add SELinux support: -Z option.
Jim Meyering [Sat, 13 Jan 2007 15:15:41 +0000 (16:15 +0100)]
id: Add SELinux support: -Z option.

* src/id.c (main): Apply patches from Fedora, with these changes:
Remove #ifdef WITH_SELINUX.
Use error (EXIT_FAILURE, not fprintf+exit(1).
* src/Makefile.am (id_LDADD): Define, so as to add $(LIB_SELINUX).

17 years agoKeep SELinux-related ChangLog entries here.
Jim Meyering [Sat, 13 Jan 2007 11:12:03 +0000 (12:12 +0100)]
Keep SELinux-related ChangLog entries here.

17 years agostat: Add support for SELinux in the form of a %C format directive.
Jim Meyering [Sun, 7 Jan 2007 08:15:42 +0000 (09:15 +0100)]
stat: Add support for SELinux in the form of a %C format directive.

* src/stat.c (follow_links): Make this variable file-global.
(out_file_context): New function.
(print_statfs): Honor %C.
(print_stat): Honor %C.
(do_stat): Remove follow_links parameter.
(usage): Document the two %C directives.
(main): Accept -Z (though it's a no-op).
* src/Makefile.am (stat_LDADD): Define.

17 years agoadd chcon
Jim Meyering [Sat, 6 Jan 2007 17:38:51 +0000 (18:38 +0100)]
add chcon

17 years agols: Add support for SELinux and a slightly modified -Z option.
Jim Meyering [Fri, 5 Jan 2007 17:23:54 +0000 (18:23 +0100)]
ls: Add support for SELinux and a slightly modified -Z option.

I started with the patches from Red Hat.
The entries below tell how the code evolved.

* src/ls.c (print_long_format, print_file_name_and_frills): When
there is no security context (due to getfilecon/lgetfilecon failing
with e.g. ENOTSUP), print it as "?", not "".
* src/ls.c (print_file_name_and_frills): Make -Z work without -l.
(length_of_file_name_and_frills): Likewise.

* src/ls.c: Remove the --lcontext and --scontext options.
Change the way -Z, --context work so that it no longer implies -l.
Thus, -Z -l will work like -lcontext and -Z without -l will work
like --scontext.

Adjust tests to reflect new 'ls -l' syntax -- affects only
systems with SELinux when operating on a file with no ACL.
These tests assumed that everything before the first space on
each line is the 10-byte mode string.  But there may also be a "+"
in the 11th column, just before the space.  However, note that this
is not new.  The same thing would have happened even without the
change below, when listing a file with an ACL.
* tests/chmod/equals, tests/cp/cp-parents, tests/cp/fail-perm:
* tests/cp/link-preserve, tests/install/basic-1, tests/misc/mknod:
* tests/mkdir/parents, tests/mkdir/special-1, tests/mv/partition-perm:

Don't make compilation depend on USE_ACL.  An SELinux security
context counts as an "alternate access control method", so ls
must output a "+" for each file with a security context.
* src/ls.c [struct fileinfo] (have_acl): Declare unconditionally.
(FILE_HAS_ACL): Remove macro definition.  Use f->have_acl directly.
(gobble_file): Record whether a file has a security context, and
update the condition used to determine whether to print the "+".
(gobble_file): Call getfilecon/lgetfilecon also when
format == long_format, so that we get the "+".

* src/ls.c (gobble_file): Add a comment explaining why (with a
security context option) ls doesn't exit nonzero due to e.g.,
getfilecon failing with errno == ENOTSUP.

* src/ls.c (gobble_file): Ignore failure of getfilecon if it's due
to ENOTSUP.

* src/ls.c (gobble_file): Factor out three small blocks using
getfilecon and lgetfilecon.
Don't ignore return value from getfilecon and lgetfilecon.

* src/ls.c (print_long_format): Don't use ?: (empty 2nd arg with C
ternary operator).
(print_scontext_format): Likewise.
(print_scontext): Declare to be "bool", not int.  Adjust uses.

* src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD): Add $(LIB_SELINUX).

* tests/misc/chcon: New file.
* tests/misc/chcon-fail: New file.
* tests/Makefile.am (check-root): Run new, root-only misc/chcon test.
* tests/misc/Makefile.am (TESTS): Add chcon and chcon-fail.

* tests/misc/Makefile.am (TESTS): Add selinux.
* tests/misc/selinux: New file.
* tests/help-version: Skip chcon.

17 years ago* man/chcon.x: New file.
Jim Meyering [Thu, 4 Jan 2007 15:41:46 +0000 (16:41 +0100)]
* man/chcon.x: New file.

* man/Makefile.am: Build chcon.1.

17 years ago.cvsignore, .gitignore: update
Jim Meyering [Thu, 4 Jan 2007 15:35:31 +0000 (16:35 +0100)]
.cvsignore, .gitignore: update

17 years agoNew program: chcon
Jim Meyering [Thu, 4 Jan 2007 15:33:43 +0000 (16:33 +0100)]
New program: chcon

* gl/modules/selinux-at: New module.  Check for libselinux and set
LIB_SELINUX here, unconditionally, rather than depending on
the configure-time --enable-selinux option.
* gl/modules/selinux-h: New module.
* bootstrap.conf (gnulib_modules): Add selinux-at.
* gl/lib/selinux-at.c, gl/lib/selinux-at.h: New files.
* gl/lib/se-selinux_.h: New file.
* gl/lib/se-context_.h: New file.
* gl/m4/selinux-selinux-h.m4: New file.
* gl/m4/selinux-context-h.m4: New file.
* src/Makefile.am (bin_PROGRAMS): Add chcon.
(chcon_LDADD): Define.
* README: Add chcon to the list of programs.
* src/chcon.c: Rewrite the original (Red Hat) chcon to use fts.

17 years agoMerge branch 'master' of /cu
Jim Meyering [Thu, 29 Mar 2007 19:36:38 +0000 (21:36 +0200)]
Merge branch 'master' of /cu

17 years ago* .vg-suppressions: Add libc-getpwuid-leak.
Jim Meyering [Thu, 29 Mar 2007 19:35:20 +0000 (21:35 +0200)]
* .vg-suppressions: Add libc-getpwuid-leak.

17 years agoMerge branch 'master' of /cu
Jim Meyering [Wed, 28 Mar 2007 21:39:18 +0000 (23:39 +0200)]
Merge branch 'master' of /cu

17 years agoHelp translators include translation team's web or email address.
Jim Meyering [Wed, 28 Mar 2007 06:50:29 +0000 (08:50 +0200)]
Help translators include translation team's web or email address.
* src/system.h (emit_bug_reporting_address): New function.
* src/base64.c: Use it rather than a literal printf.
* src/basename.c, src/cat.c, src/chgrp.c, src/chmod.c:
* src/chown.c, src/chroot.c, src/cksum.c, src/comm.c, src/cp.c:
* src/csplit.c, src/cut.c, src/date.c, src/dd.c, src/df.c:
* src/dircolors.c, src/dirname.c, src/du.c, src/echo.c, src/env.c:
* src/expand.c, src/expr.c, src/factor.c, src/fmt.c, src/fold.c:
* src/head.c, src/hostid.c, src/hostname.c, src/id.c, src/install.c:
* src/join.c, src/kill.c, src/link.c, src/ln.c, src/logname.c:
* src/ls.c, src/md5sum.c, src/mkdir.c, src/mkfifo.c, src/mknod.c:
* src/mv.c, src/nice.c, src/nl.c, src/nohup.c, src/od.c:
* src/paste.c, src/pathchk.c, src/pinky.c, src/pr.c, src/printenv.c:
* src/printf.c, src/ptx.c, src/pwd.c, src/readlink.c, src/rm.c:
* src/rmdir.c, src/seq.c, src/setuidgid.c, src/shred.c, src/shuf.c:
* src/sleep.c, src/sort.c, src/split.c, src/stat.c, src/stty.c:
* src/su.c, src/sum.c, src/sync.c, src/system.h, src/tac.c:
* src/tail.c, src/tee.c, src/test.c, src/touch.c, src/tr.c:
* src/true.c, src/tsort.c, src/tty.c, src/uname.c, src/unexpand.c:
* src/uniq.c, src/unlink.c, src/uptime.c, src/users.c, src/wc.c:
* src/who.c, src/whoami.c, src/yes.c: Likewise.

17 years agoAdd to .cvsignore and .gitignore files.
Jim Meyering [Wed, 28 Mar 2007 06:46:01 +0000 (08:46 +0200)]
Add to .cvsignore and .gitignore files.

17 years ago* src/stty.c: Don't include "vasprintf.h", now that its
Jim Meyering [Wed, 28 Mar 2007 06:34:03 +0000 (08:34 +0200)]
* src/stty.c: Don't include "vasprintf.h", now that its
declarations are guaranteed to be in gnulib's stdio.h.
* src/who.c: Likewise.

17 years ago* README: Use "install", not "ginstall" in the list of program names.
Jim Meyering [Tue, 27 Mar 2007 14:08:29 +0000 (16:08 +0200)]
* README: Use "install", not "ginstall" in the list of program names.
* src/Makefile.am (check-README): Substitute s/ginstall/install/.

17 years agoAdd to .cvsignore and .gitignore files.
Jim Meyering [Sun, 25 Mar 2007 08:56:24 +0000 (10:56 +0200)]
Add to .cvsignore and .gitignore files.

17 years ago* src/c99-to-c89.diff: Regenerate.
Jim Meyering [Sun, 25 Mar 2007 08:20:43 +0000 (10:20 +0200)]
* src/c99-to-c89.diff: Regenerate.

17 years agoAvoid the need for euidaccess and/or lstat on every directory entry
Paul Eggert [Sun, 25 Mar 2007 07:52:57 +0000 (09:52 +0200)]
Avoid the need for euidaccess and/or lstat on every directory entry
with 'rm -r dir' (without -f), if we are root, or if we are removing
a directory tree that is full of symbolic links.
* bootstrap.conf (gnulib_modules): Add write-any-file.
* src/copy.c: Include write-any-file.h.
(UNWRITABLE): Remove macro, replacing with....
(writable_destination): New function, which uses can_write_any_file
to avoid the need for euidaccess when we are privileged.
(overwrite_prompt, abandon_move): Use it.
* src/remove.c: Include write-any-file.h.
(D_TYPE): New macro.
(DT_UNKNOWN, DT_DIR, DT_LNK) [!HAVE_STRUCT_DIRENT_D_TYPE]: New macros.
(write_protected_non_symlink): Don't bother to stat if we can write
any file.
(prompt): New arg PDIRENT_TYPE.  All callers changed.
Use readdir dirent type to avoid the need for 'lstat' on each directory
entry in cases like 'rm -r dir', if we are root, or if the tree is
full of symbolic links.
(DT_IS_KNOWN, DT_MUST_BE): Remove.
(remove_entry): New arg DIRENT_TYPE_ARG.  All callers changed.

17 years agoIf strace malfunctions, skip the test rather than failing it.
Jim Meyering [Sat, 24 Mar 2007 10:25:15 +0000 (11:25 +0100)]
If strace malfunctions, skip the test rather than failing it.
* tests/mv/atomic: Required on a mips-unknown-linux-gnu system
running the aging linux-2.4.27-mipscvs-20040814.

17 years ago* src/pathchk.c: Don't include euidaccess.h, as we don't call
Jim Meyering [Fri, 23 Mar 2007 20:40:11 +0000 (21:40 +0100)]
* src/pathchk.c: Don't include euidaccess.h, as we don't call
euidaccess.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Jim Meyering <jim@meyering.net>
17 years agoMerge branch 'master' of /cu
Jim Meyering [Sun, 18 Mar 2007 17:14:49 +0000 (18:14 +0100)]
Merge branch 'master' of /cu

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

17 years agoMerge branch 'master' of /cu
Jim Meyering [Mon, 12 Mar 2007 09:36:01 +0000 (10:36 +0100)]
Merge branch 'master' of /cu

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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