Jim Meyering [Mon, 16 Apr 2007 20:00:28 +0000 (22:00 +0200)]
cut synopsis: fix coreutils.texi, too.
* doc/coreutils.texi (cut invocation): Adjust synopsis to show that an
* THANKS: Add Rudolf Kastl.
OPTION is required. Reported by Rudolf Kastl.
Jim Meyering [Mon, 16 Apr 2007 14:26:13 +0000 (16:26 +0200)]
* src/cut.c (usage): Adjust synopsis to show that an OPTION is required.
Reported by Rudolf Kastl.
Jim Meyering [Thu, 12 Apr 2007 12:48:50 +0000 (14:48 +0200)]
Add to .cvsignore and .gitignore files.
Paul Eggert [Wed, 11 Apr 2007 22:21:25 +0000 (00:21 +0200)]
split --line-bytes=N (-C N): don't create an empty file.
* src/split.c (line_bytes_split): Don't create an empty line
afterwards if the last buffer happens to be exactly full.
* tests/misc/split-fail: Add a test case for this.
* NEWS: mention this.
Jim Meyering [Mon, 9 Apr 2007 22:18:25 +0000 (00:18 +0200)]
ls: don't form or compute the length of strings that won't be used.
* src/ls.c (gobble_file): Form and compute length of strings for
block size, owner, group, author, major+minor numbers and file size
only if they'll actually be used. I.e., don't form most of them
when not producing long format output.
Jim Meyering [Sat, 7 Apr 2007 18:46:27 +0000 (20:46 +0200)]
Add a test for, and document, today's fix.
* NEWS: Mention today's ls --color fix.
* tests/ls-2/tests (sl-target): Add a test for today's fix.
* THANKS: Add Kirk Kelsey.
Eric Blake [Sat, 7 Apr 2007 18:14:07 +0000 (20:14 +0200)]
Fix a bug in how the LS_COLORS ln=target attribute is handled.
* src/ls.c (gobble_file): Use "stat" (not lstat) also when the
ln=target attribute applies. Reported by Kirk Kelsey.
Jim Meyering [Mon, 2 Apr 2007 20:06:22 +0000 (22:06 +0200)]
* src/copy.c (copy_reg): Initialize local "con", before calling
getfscreatecon, in case that function (or its inline stub) does
not set it.
Paul Eggert [Mon, 2 Apr 2007 16:27:34 +0000 (18:27 +0200)]
* src/ls.c (print_horizontal): Fix bug reported by Mike Frysinger:
ls -x DIR would sometimes output the wrong string in place of the
first entry.
* NEWS: Mention the bug fix.
* tests/ls/x-option: New file.
* tests/ls/Makefile.am (TESTS): Add x-option.
Paul Eggert [Mon, 2 Apr 2007 12:48:35 +0000 (14:48 +0200)]
gnulib moved md5 and sha1 modules into a new crypt/ directory; adapt
* bootstrap.conf (gnulib_modules): Adjust to gnulib's renaming of
md5 to crypt/md5 and sha1 to crypt/sha1.
Jim Meyering [Fri, 30 Mar 2007 14:02:54 +0000 (16:02 +0200)]
* NEWS: Mention these SELinux changes.
Jim Meyering [Fri, 30 Mar 2007 09:16:00 +0000 (11:16 +0200)]
* ChangeLog-selinux: Remove file.
Move its contents into this file, removing old dates.
Jim Meyering [Sun, 18 Mar 2007 17:04:30 +0000 (18:04 +0100)]
* src/runcon.c (main): Don't reorder arguments. Reported by
Ulrich Drepper in <http://bugzilla.redhat.com/232652>.
* tests/misc/runcon-no-reorder: New file. Test for the above.
* tests/misc/Makefile.am (TESTS): Add runcon-no-reorder.
Jim Meyering [Sun, 18 Mar 2007 16:52:00 +0000 (17:52 +0100)]
* src/runcon.c (main): Remove "." at end of a diagnostic.
Jim Meyering [Mon, 12 Feb 2007 18:35:25 +0000 (19:35 +0100)]
Arrange for "make check-root" to run the new root-only test.
* tests/Makefile.am (t9): New target, to run tests/cp/cp-a-selinux.
(all_t): Add t9.
Use a directory on a loopback device mounted with -o context=...
* tests/cp/cp-a-selinux: Since this test now runs mount and umount,
it is a root-only one.
Jim Meyering [Fri, 2 Feb 2007 17:58:41 +0000 (18:58 +0100)]
* src/runcon.c: New program.
* src/Makefile.am (bin_PROGRAMS): Add runcon.
(runcon_LDADD): Define.
* README: Add runcon to the list of programs.
* AUTHORS: Add this: runcon: Russell Coker
* tests/help-version: Add runcon as an exception.
* man/Makefile.am (dist_man_MANS): Add runcon.1.
(runcon.1): New dependency.
* po/POTFILES.in: Add src/runcon.c.
Jim Meyering [Thu, 1 Feb 2007 17:07:36 +0000 (18:07 +0100)]
Regenerate .cvsignore and .gitignore files.
Jim Meyering [Wed, 31 Jan 2007 23:26:07 +0000 (00:26 +0100)]
mkfifo, mknod: Accept new "-Z, --context=C" option.
* src/mkfifo.c, src/mknod.c: Include <selinux/selinux.h>.
(main): Honor it.
* src/Makefile.am (mkfifo_LDADD, mknod_LDADD): Use $(LIB_SELINUX).
Jim Meyering [Wed, 31 Jan 2007 22:59:46 +0000 (23:59 +0100)]
mkdir: Accept new "-Z, --context=C" option.
* src/mkdir.c: Include <selinux/selinux.h>.
(main): Honor it.
* src/Makefile.am (mkdir_LDADD): Use $(LIB_SELINUX).
Jim Meyering [Wed, 31 Jan 2007 22:01:50 +0000 (23:01 +0100)]
* tests/cp/cp-a-selinux: New file. Test for the bug reported in
* tests/cp/Makefile.am (TESTS): Add cp-a-selinux.
* tests/selinux: New file.
* tests/Makefile.am (EXTRA_DIST): Add selinux.
* tests/misc/selinux: Source the new script, rather than open coding it.
Change how "cp -a" and "cp --preserve=context" work with SELinux.
Now, cp -a attempts to preserve context, but failure to do so does
not change cp's exit status. However "cp --preserve=context" is
similar, but failure *does* cause cp to exit with nonzero status.
* src/copy.h (struct cp_options) [require_preserve_context]: New member.
* src/copy.c (copy_reg, copy_internal): Implement the above.
* src/mv.c (cp_option_init): Initialize the new member.
* src/install.c (cp_option_init): Likewise.
* src/cp.c (cp_option_init): Likewise.
(decode_preserve_arg): Set it or reset it.
FIXME: add an on-writable-NFS-only test
Jim Meyering [Sat, 20 Jan 2007 15:33:00 +0000 (16:33 +0100)]
* src/system.h (GETOPT_SELINUX_CONTEXT_OPTION_DECL): Define.
Jim Meyering [Sat, 20 Jan 2007 15:10:43 +0000 (16:10 +0100)]
cp, mv, install: add SELinux support, but unlike with the Red Hat
patch, mv and cp do not provide the "-Z context" option.
* src/copy.c: Include <selinux/selinux.h>.
(restore_default_fscreatecon): New function.
(copy_reg): Make cp --preserve=context work for existing destination.
(copy_internal): Likewise for new destinations.
* src/copy.h (cp_options) [preserve_security_context]: New member.
* src/cp.c: Include <selinux/selinux.h>.
(selinux_enabled): New global.
(usage): Mention new --preserve=context option.
(PRESERVE_CONTEXT): Define/use.
(decode_preserve_arg): Handle PRESERVE_CONTEXT.
(main): Remove an obsolete comment.
If --preserve=context is specified on a system without SELinux
enabled, give a diagnostic and fail.
* src/mv.c: Include <selinux/selinux.h>.
Set x->preserve_security_context if SELinux is enabled.
* src/install.c: Accept new "-Z, --context=C" option.
Accept --preserve-context option (but not -P option).
Accept alternate spelling: --preserve_context, for now.
Include <selinux/selinux.h> and "quotearg.h".
(selinux_enabled, use_default_selinux_context): New globals.
(PRESERVE_CONTEXT_OPTION): Define.
(cp_option_init): Default: do not preserve security context.
(setdefaultfilecon): New function.
(main): Honor new options.
* src/Makefile.am (mv_LDADD, cp_LDADD, ginstall_LDADD):
Add $(LIB_SELINUX).
Jim Meyering [Sat, 13 Jan 2007 18:29:21 +0000 (19:29 +0100)]
* tests/misc/selinux [VERBOSE]: Print version info for each
of the tested tools, not just ls.
Jim Meyering [Sat, 13 Jan 2007 18:27:41 +0000 (19:27 +0100)]
* src/c99-to-c89.diff: Remove the ls.c patch, now that I've
temporarily removed the offending c99'ism.
Jim Meyering [Sat, 13 Jan 2007 17:24:06 +0000 (18:24 +0100)]
* src/chcon.c (usage): Split a string literal that was longer than 509.
Jim Meyering [Sat, 13 Jan 2007 17:22:46 +0000 (18:22 +0100)]
* src/ls.c (gobble_file): Don't call getfilecon unless print_scontext.
Upon failed getfilecon, accept not just ENOTSUP, but also ENODATA.
Jim Meyering [Sat, 13 Jan 2007 17:12:01 +0000 (18:12 +0100)]
* src/c99-to-c89.diff: Adjust offsets.
Jim Meyering [Sat, 13 Jan 2007 16:49:17 +0000 (17:49 +0100)]
* AUTHORS: Add chcon.
Jim Meyering [Sat, 13 Jan 2007 16:22:57 +0000 (17:22 +0100)]
* src/c99-to-c89.diff: Remove trailing blanks.
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.
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.
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.
Jim Meyering [Sat, 13 Jan 2007 15:43:07 +0000 (16:43 +0100)]
* src/id.c (main): Tweak id -Z diagnostic.
Jim Meyering [Sat, 13 Jan 2007 15:30:04 +0000 (16:30 +0100)]
* POTFILES.in: Add src/chcon.c.
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).
Jim Meyering [Sat, 13 Jan 2007 11:12:03 +0000 (12:12 +0100)]
Keep SELinux-related ChangLog entries here.
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.
Jim Meyering [Sat, 6 Jan 2007 17:38:51 +0000 (18:38 +0100)]
add chcon
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.
Jim Meyering [Thu, 4 Jan 2007 15:41:46 +0000 (16:41 +0100)]
* man/chcon.x: New file.
* man/Makefile.am: Build chcon.1.
Jim Meyering [Thu, 4 Jan 2007 15:35:31 +0000 (16:35 +0100)]
.cvsignore, .gitignore: update
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.
Jim Meyering [Thu, 29 Mar 2007 19:36:38 +0000 (21:36 +0200)]
Merge branch 'master' of /cu
Jim Meyering [Thu, 29 Mar 2007 19:35:20 +0000 (21:35 +0200)]
* .vg-suppressions: Add libc-getpwuid-leak.
Jim Meyering [Wed, 28 Mar 2007 21:39:18 +0000 (23:39 +0200)]
Merge branch 'master' of /cu
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.
Jim Meyering [Wed, 28 Mar 2007 06:46:01 +0000 (08:46 +0200)]
Add to .cvsignore and .gitignore files.
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.
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/.
Jim Meyering [Sun, 25 Mar 2007 08:56:24 +0000 (10:56 +0200)]
Add to .cvsignore and .gitignore files.
Jim Meyering [Sun, 25 Mar 2007 08:20:43 +0000 (10:20 +0200)]
* src/c99-to-c89.diff: Regenerate.
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.
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.
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.
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.
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.
Jim Meyering [Thu, 22 Mar 2007 21:37:06 +0000 (22:37 +0100)]
.prev-version: Record previous version: 6.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.
Jim Meyering [Thu, 22 Mar 2007 21:11:03 +0000 (22:11 +0100)]
* tests/mv/hard-3: Correct the preceding change: $3 -> $2.
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.
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.
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.
Jim Meyering [Wed, 21 Mar 2007 14:41:58 +0000 (15:41 +0100)]
Add to .cvsignore and .gitignore files.
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.
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.
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.
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.
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.
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).
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>
Jim Meyering [Sun, 18 Mar 2007 17:14:49 +0000 (18:14 +0100)]
Merge branch 'master' of /cu
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.
Jim Meyering [Sat, 17 Mar 2007 12:15:17 +0000 (13:15 +0100)]
Fix a silly syntax error introduced in last change.
Jim Meyering [Sat, 17 Mar 2007 12:01:56 +0000 (13:01 +0100)]
fix a syntax error
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.
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.
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.
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.
Jim Meyering [Sat, 17 Mar 2007 08:46:54 +0000 (09:46 +0100)]
* bootstrap: Don't use \> in grep regexp. For HP-UX.
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.
Jim Meyering [Fri, 16 Mar 2007 21:06:27 +0000 (22:06 +0100)]
* bootstrap: Update from gnulib.
Jim Meyering [Fri, 16 Mar 2007 21:06:04 +0000 (22:06 +0100)]
* .x-sc_prohibit_atoi_atof: Add TODO here, too.
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.
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.
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.
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.
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*.
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>.
Jim Meyering [Mon, 12 Mar 2007 09:36:01 +0000 (10:36 +0100)]
Merge branch 'master' of /cu
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.
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
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.
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.
Jim Meyering [Fri, 9 Mar 2007 23:45:30 +0000 (00:45 +0100)]
remove trailing blanks
Jim Meyering [Fri, 9 Mar 2007 23:43:50 +0000 (00:43 +0100)]
* Makefile.maint (po-check): Exclude c99-to-c89.diff.
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.
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).
Jim Meyering [Fri, 9 Mar 2007 14:18:17 +0000 (15:18 +0100)]
src/fs.h: git-rm a generated but already-ignored file
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.
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.