Commit Graph

  • 7a6a30b8a2 Add support for parallel "make check" (in tests/misc, for now) Jim Meyering 2007-08-14 10:21:48 +02:00
  • 5c2f8101c5 * vc-list-files: Remove mercurial support. Check for CVS first. Adjust comments. Jim Meyering 2007-09-15 08:39:53 +02:00
  • eaa1c07fa1 Accommodate gnulib's renaming: __fpending.h -> fpending.h. Jim Meyering 2007-09-08 21:35:23 +02:00
  • 500eccdbe4 chmod: don't ignore a dangling symlink Jim Meyering 2007-09-07 10:37:08 +02:00
  • e70487cda7 Add a test: demonstrate that chmod ignores a dangling symlink Bob Proulx 2007-09-07 10:29:32 +02:00
  • 0fb836f179 Adapt to new SELinux behavior: "?" vs. new "unlabeled" Jim Meyering 2007-09-05 10:57:54 +02:00
  • 4055cd5a26 Run autoconf manually, if needed to get an updated version string. Jim Meyering 2007-09-03 10:52:49 +02:00
  • d0bd493a2a Don't change '-'s to '.'s in the string from git-describe. Jim Meyering 2007-09-03 10:38:14 +02:00
  • 698091be0e README-hacking: Require rsync, rather than wget. Jim Meyering 2007-09-03 09:06:10 +02:00
  • e4637b48b5 * bootstrap (WGET_COMMAND): Remove code to set this variable. Jim Meyering 2007-09-02 13:49:49 +02:00
  • 3ed2b48d10 Ensure that $(VERSION) is up to date for dist-related targets. Jim Meyering 2007-09-02 11:37:57 +02:00
  • 2c57c49cc3 bootstrap: uses rsync to download the .po files Jim Meyering 2007-09-02 09:38:39 +02:00
  • 5fabec7fb6 * bootstrap (gnulib_tool): Make sha1sum check quietly. Jim Meyering 2007-09-01 19:00:09 +02:00
  • 940c1a61f4 Ensure that snapshot version changes make it to groups, too. Jim Meyering 2007-09-01 11:20:53 +02:00
  • 6873756075 Make groups-version executable, Jim Meyering 2007-09-01 11:20:42 +02:00
  • 3637b9572b Test yesterday's change to groups. Eric Blake 2007-08-31 23:22:24 +02:00
  • 89907ec099 Solve the unnecessary-.po-file-regeneration problem once and for all. Jim Meyering 2007-08-31 22:17:53 +02:00
  • 42a4957361 Shorten the snapshot version string by removing the "g". Jim Meyering 2007-08-30 23:13:06 +02:00
  • 624d125cee Perform the s,rm,/bin/rm, fix-up properly. No more kludge. Jim Meyering 2007-08-30 10:47:11 +02:00
  • bfe49f506f Make inter-release --version output more useful. Jim Meyering 2007-08-26 00:48:41 +02:00
  • 8138613746 * src/.gitignore: Ignore *.exe for platforms with non-empty $(EXEEXT). Eric Blake 2007-08-29 21:02:24 -06:00
  • 4b11f24c64 Use PACKAGE_NAME instead of GNU_PACKAGE. * src/Makefile.am (.sh, uninstall-local): Adjust all users of hand-rolled GNU_PACKAGE to instead use autoconf-provided PACKAGE_NAME. * src/basename.c (main): Likewise. * src/chroot.c (main): Likewise. * src/dirname.c (main): Likewise. * src/echo.c (main): Likewise. * src/expr.c (main): Likewise. * src/factor.c (main): Likewise. * src/groups.sh (version): Likewise. Also, reflect change in --version output due to GPLv3. * src/hostid.c (main): Likewise. * src/hostname.c (main): Likewise. * src/link.c (main): Likewise. * src/logname.c (main): Likewise. * src/nice.c (main): Likewise. * src/nohup.c (main): Likewise. * src/printenv.c (main): Likewise. * src/printf.c (main): Likewise. * src/pwd.c (main): Likewise. * src/setuidgid.c (main): Likewise. * src/sleep.c (main): Likewise. * src/system.h (case_GETOPT_VERSION_CHAR): Likewise. * src/test.c (main): Likewise. * src/true.c (main): Likewise. * src/unlink.c (main): Likewise. * src/uptime.c (main): Likewise. * src/users.c (main): Likewise. * src/whoami.c (main): Likewise. * src/yes.c (main): Likewise. * configure.ac (AC_CHECK_DECLS): No need to check strtoimax, strtoumax, since gnulib does this. Eric Blake 2007-08-30 17:11:59 +02:00
  • 58ddd2c5a1 Ensure that TMPDIR is valid. Otherwise, it would cause test failures. * tests/misc/tty-eof: Set TMPDIR=. * tests/misc/sort-compress: Likewise. Jim Meyering 2007-08-29 00:17:27 +02:00
  • 35755454e4 Use EXIT_FAILURE, not EXIT_FAIL, now that EXIT_FAILURE is always 1. Jim Meyering 2007-08-29 00:13:16 +02:00
  • adfc479d47 * src/test.c (usage): Say that [ honors --help and --version, but test does not. Jim Meyering 2007-08-28 18:41:41 +02:00
  • d6d5658df6 By default, do not install hostname anymore; no kidding, this time. Jim Meyering 2007-08-28 18:24:48 +02:00
  • c370a7e62f Reflect renaming: mreadlink-with-size -> areadlink-with-size. Jim Meyering 2007-08-28 09:11:36 +02:00
  • cbdbbc4a58 Add file system type names and magic numbers from "man 2 statfs". * src/stat.c (human_fstype): Also handle BEFS, BFS, BINFMT_MISC, FUSECTL, HUGETLBFS, NFSD and OPENPROM. Jim Meyering 2007-08-28 00:14:20 +02:00
  • 505eee2f38 Add some file system type names and magic numbers from glibc. Jim Meyering 2007-08-27 23:46:49 +02:00
  • ddb029b0f0 tests/misc/fold: Fix a typo: missing \ in a never-seen diagnostic Jim Meyering 2007-08-26 18:44:29 +02:00
  • a2f768f65e Avoid case-insensitive clash in one-page-per-node html docs. Eric Blake 2007-08-26 00:49:52 +02:00
  • eea7d892c4 * src/dircolors.hin: Add .dz and .svgz as archive suffixes. Jim Meyering 2007-08-25 20:47:03 +02:00
  • 6e3e819f4b Remove all .cvsignore files from version control. Jim Meyering 2007-08-25 00:27:11 +02:00
  • ec06465572 bootstrap: Ignore more. Jim Meyering 2007-08-24 23:54:54 +02:00
  • ee84700f76 No longer version-control .???ignore files in lib/, m4/, and po/. Jim Meyering 2007-08-24 23:53:19 +02:00
  • d71657c17b bootstrap: when fetching .po files, do not remove .gmo files. Jim Meyering 2007-08-24 22:42:25 +02:00
  • 8f3cb068fc Create .gitignore and/or .cvsignore from scratch, if absent. Jim Meyering 2007-08-24 22:40:23 +02:00
  • bcc1a1625c * src/system.h (fseeko, ftello): Remove now-unneeded definitions. Jim Meyering 2007-08-24 14:55:24 +02:00
  • 0ea19fb55c * src/od.c (LDBL_DIG): Remove now-unneeded definition. Jim Meyering 2007-08-24 14:51:55 +02:00
  • dbb6c7b2e7 Arrange to use tag names like vM.N, rather than COREUTILS-M_N. * Makefile.maint (this-vc-tag) [git]: Simply use v$(VERSION). (this-vc-tag-regexp): New variable. (vc-tag-check): Use it, rather than $(this-vc-tag). Jim Meyering 2007-08-24 14:07:06 +02:00
  • 90b11ce665 * src/dircolors.hin: Add xterm-16color, xterm-88color and eterm-color. Suggestion from Dan Nicolaescu. Jim Meyering 2007-08-23 16:33:11 +02:00
  • d02e4e7775 Don't let ln be a party to destroying user data. Jim Meyering 2007-08-23 11:51:01 +02:00
  • 22ed81c410 Move functions from copy.c into new modules, since ln needs them, too. Jim Meyering 2007-08-23 10:47:16 +02:00
  • 173524ed7d bootstrap: generate more names and fix a bug Jim Meyering 2007-08-23 09:50:58 +02:00
  • 144fe359e1 * Makefile.maint (patch-check): Don't remove temporaries upon failure. Jim Meyering 2007-08-23 09:46:14 +02:00
  • 2005de6be9 * src/c99-to-c89.diff: Adjust offsets. Jim Meyering 2007-08-22 23:49:51 +02:00
  • 0918810a7d Change "rm --verbose -r a//" not to print extra slashes in a///b * src/remove.c (push_dir): Don't copy trailing slashes onto the stack. Reported by François Pinard. * tests/rm/v-slash: New file. Test for the above change. * tests/rm/Makefile.am (TESTS): Add v-slash. Jim Meyering 2007-08-22 20:02:34 +02:00
  • 55539fc6bd Don't include "getline.h". That file has just been removed from gnulib; its declarations are now in <stdio.h>. * src/md5sum.c: Likewise. * src/dircolors.c: Likewise. Jim Meyering 2007-08-22 16:56:13 +02:00
  • a5153c5b06 * src/copy.c (DEST_INFO_INITIAL_CAPACITY): Correct a comment. Jim Meyering 2007-08-22 11:20:41 +02:00
  • fba081f923 By default, do not install hostname anymore. Jim Meyering 2007-08-21 10:34:33 +02:00
  • 741f851bf6 Clarify touch documentation of file arguments. Bob Proulx 2007-08-20 22:04:45 -06:00
  • 6dfe8fc30d NEWS: note that a cp -p bug fixed in 6.7 affected releases before 6.0. Problem reported by Soren Spies in <http://lists.gnu.org/archive/html/bug-coreutils/2007-08/msg00106.html>. To be conservative, just say the bug was in all versions through 6.6. Paul Eggert 2007-08-20 17:27:53 +02:00
  • feed02af9d Avoid consuming too much seekable input when yesno is used. Eric Blake 2007-08-20 17:01:18 +02:00
  • a05ae2f716 Use new "idcache.h" header. Jim Meyering 2007-08-18 08:59:10 +02:00
  • b78c6b68f7 Run each Coreutils.pm-based test in its own subdirectory. Jim Meyering 2007-08-18 08:50:00 +02:00
  • d2e5e366a1 Consolidate od tests. Jim Meyering 2007-08-16 19:18:29 +02:00
  • e069d38d35 * tests/ls/time-1: Include sample-test boilerplate code. Remove the then-unnecessary, hard-coded envvar "unset" commands. Jim Meyering 2007-08-16 15:50:00 +02:00
  • 535a9fe512 od --skip (-j) works even on files in /proc, when the kernel lies Jim Meyering 2007-08-15 22:44:45 +02:00
  • 9ee7933b5c * src/printf.c (usage): Adjust summary to also mention OPTIONs. From Karl Berry. Jim Meyering 2007-08-15 10:05:22 +02:00
  • e769e6e632 Add tests for the just-fixed "od -j N FILE" bug. * tests/misc/od: New file, test for the above. * tests/misc/Makefile.am (TESTS): Add od. Jim Meyering 2007-08-14 10:17:52 +02:00
  • 1490f2dbf3 od: fix a bug that arises when skipping exact length of file * NEWS: Document the bug fix. * src/od.c (skip): Call fseek even when n_skip is exactly the same as the length of the current file. Otherwise, the next iteration would use unadjusted input stream pointer, thus ignoring the desired "skip". Report and patch by Paul GHALEB. Jim Meyering 2007-08-14 09:46:32 +02:00
  • ed31c612c1 Accommodate more xstrtol changes. * src/df.c (long_options): Don't bother prepending "--" to long options that OPT_STR might decode, as that hack is no longer needed. (main): Invoke xstrtol_fatal rather than STRTOL_FATAL_ERROR. * src/du.c (long_options, main): Likewise. * src/ls.c (decode_switches): Likewise. * src/od.c (long_options, main): Likewise. * src/pr.c (first_last_page, main): Likewise. * src/sort.c (long_options, specify_sort_size): Likewise. * src/pr.c (first_last_page): Accept option index and option char instead of an assembled option string. All callers changed. * src/sort.c (specify_sort_size): Likewise. * src/system.h (OPT_STR, LONG_OPT_STR, short_opt_str, OPT_STR_INIT): Remove. Paul Eggert 2007-08-11 08:30:43 +02:00
  • d243c0e840 Adapt to gnulib's latest xstrtol change. * POTFILES.in: Use lib/xstrtol-error.c, not lib/xstrtol.h. Jim Meyering 2007-08-08 20:02:55 +02:00
  • e1e97eccb7 Encapsulate a static variable. * src/system.h (opt_str_storage): Move static var into... (short_opt_str): ... new static inline function. (OPT_STR): Use the new function. Jim Meyering 2007-08-05 10:30:23 +02:00
  • 8c8f3467f5 * POTFILES.in: Remove lib/human.c. Jim Meyering 2007-08-04 13:45:34 +02:00
  • 23183bb36b Exercise xstrtol's diagnostics via pr's --pages option. * tests/misc/xstrtol: New file. * tests/misc/Makefile.am (TESTS): Add xstrtol. Jim Meyering 2007-08-04 13:45:21 +02:00
  • 8188c3b48d Adapt to new human and xstrtol API. * src/df.c (long_options): Prepend "--" to long options that OPT_STR might decode. * src/du.c (long_options): Likewise. * src/od.c (long_options): Likewise. * src/sort.c (long_options): Likewise. * src/df.c (main): Adjust to new human and xstrtol API. * src/du.c (main): Likewise. * src/ls.c (decode_switches): Likewise. * src/od.c (main): Likewise. * src/pr.c (first_last_page): Likewise. New argument OPTION. All callers changed. * src/sort.c (specify_sort_size): New arg OPTION. All callers changed. Adjust to new xstrtol API. * src/system.h (opt_str_storage): New static var. (OPT_STR, LONG_OPT_STR, OPT_STR_INIT): New macros. Paul Eggert 2007-08-04 13:36:59 +02:00
  • 33f95a9ab6 Adjust one more test to accommodate the recent fts change. This matters only on systems with insufficient openat support. * tests/du/inacc-dest: Adjust expected diagnostic. Jim Meyering 2007-08-02 19:48:03 +02:00
  • 674ea8b2dc Adjust the other two "no-x" tests and unify all three. * tests/du/no-x: Factor out du-specific bits. * tests/chmod/no-x: Use the same code. * tests/chgrp/no-x: Use the same code. Jim Meyering 2007-08-02 19:27:07 +02:00
  • df03463679 Adapt du's no-x test not to fail on older Linux systems. * tests/du/no-x: Accept a third variant of the diagnostic. Jim Meyering 2007-08-02 18:52:40 +02:00
  • fd9a6e860b du: print size (probably incomplete) of each inaccessible directory Jim Meyering 2007-07-31 10:46:31 +02:00
  • 3b03442c54 Add a test for du not counting size of inaccessible directories. Jim Meyering 2007-07-31 09:49:05 +02:00
  • 1b6f200c8e Adjust indentation to reflect today's change. Jim Meyering 2007-07-29 15:47:11 +02:00
  • 288524b39b Attempt to copy a regular file, even if stat says it is empty. * NEWS: Document this bug fix. * src/copy.c (copy_reg): Read from a regular file, even if it appears (stat.st_size == 0) to be empty. This reverts an optimization introduced on 2005-11-23 for coreutils-6.0. Otherwise, "cp /proc/cpuinfo /tmp" creates an empty file, on e.g., linux-2.6.20. * tests/cp/proc-zero-len: New file. Test for the above. * tests/cp/Makefile.am (TESTS): Add proc-zero-len. Reported by Dan Berrangé. Jim Meyering 2007-07-28 18:49:04 +02:00
  • 26468bd5a2 sort: Improve sort --random-sort test. Bob Proulx 2007-07-26 02:26:13 -06:00
  • 813d66cea7 NEWS: Move the other "sort" entry from the 6.9 section into 6.10 "Bug fixes". Jim Meyering 2007-07-24 10:00:59 +02:00
  • c12bf5fb7f sort: add a test to exercise the affected code. * tests/sort/Test.pm (realloc-buf): Exercise the code that changed yesterday. No other test in all of "make check" does this. * NEWS: Mention the fix. Jim Meyering 2007-07-24 09:59:14 +02:00
  • 9d8e077ca1 sort: avoid unaligned access. * src/sort.c (fillbuf): When enlarging the line buffer, ensure that the new size is a multiple of "sizeof (struct line)". This avoids alignment problems when indexing from the end of the buffer. Problem reported by Andreas Schwab in <http://lists.gnu.org/archive/html/bug-coreutils/2007-07/msg00158.html>. Paul Eggert 2007-07-24 09:40:55 +02:00
  • 71aa3ea880 Update all copyright notices to use the newer form. Jim Meyering 2007-07-23 14:35:58 +02:00
  • 5f606e6f1f * COPYING: Update to Version 3. Jim Meyering 2007-07-23 14:31:01 +02:00
  • 7326d1f1a6 Update c99/c89 patch for new, copyright-change-induced offsets. * Makefile.maint (patch-check): Filter out '^Only in...' lines. * src/c99-to-c89.diff: Handle new c99'isms in seq.c. Jim Meyering 2007-07-23 14:07:02 +02:00
  • cd098ea199 Arrange to rerun configure whenever src/Makefile.am changes. * configure.ac: Arrange to rerun configure whenever src/Makefile.am changes. That file contains the list of program names that must be substituted into files like man/Makefile. Add quotes around AC_SUBST arguments. Jim Meyering 2007-07-22 18:26:23 +02:00
  • a0c8d0e0fe * bootstrap (slurp): Work even in environments where "ls" defaults to "ls -A". Put in a FIXME, though, since the current code does not slurp files whose names start with ".", and this looks like it might be a troublesome area. Paul Eggert 2007-07-21 15:00:54 +02:00
  • 366aaf59dc Document and add a test for today's sort bug fix. * NEWS: Describe the bug fix. * tests/sort/Test.pm (obs-inval): Add a test for today's fix. Jim Meyering 2007-07-20 18:42:23 +02:00
  • 0cf6181947 * src/sort.c (main): Don't free a pointer to non-malloc'd memory. Andreas Schwab 2007-07-20 16:29:06 +02:00
  • 1f2c2d7053 Fix a portability bug in the new ls-color test. * tests/ls/stat-free-symlinks: Don't rely on the ability of a built-in printf to interpolate '\e'. Use '\033' instead. Jim Meyering 2007-07-19 10:17:39 +02:00
  • 7465b002f9 "cp -i --update older newer" no longer prompts; same for mv * src/copy.c (copy_internal): Perform "update" check before the possible interactive prompt. Reported by zeno_AT_biyg_DOT_org in <http://bugzilla.redhat.com/248591> * tests/mv/update: Add tests for the above. * NEWS: Mention the bug fix. Jim Meyering 2007-07-19 10:14:41 +02:00
  • 8062509aa7 ChangeLog: Mention the correct function name in the 2007-07-08 bootstrap entry. Jim Meyering 2007-07-17 09:16:59 +02:00
  • 0a744370bb ls --color: Don't stat symlinks when neither ORPHAN nor MISSING attribute has a color. * src/ls.c (main): Don't set check_symlink_color when C_EXEC is colored, unless ln=target (aka color_symlink_as_referent) is set. (gobble_file): Set f->linkok = true also when !check_symlink_color. http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10608/focus=10927 Reported by Jeremy Maitin-Shepard. * tests/strace: New file, contents extracted from... * tests/mv/atomic: ...here. Source strace. * tests/ls/stat-free-symlinks: New file. Test for the above. Use strace to ensure that in this corner case, ls does not call stat. * tests/ls/Makefile.am (TESTS): Add stat-free-symlinks. * tests/Makefile.am (EXTRA_DIST): Add strace. Jim Meyering 2007-07-15 22:13:16 +02:00
  • 065109af86 * coreutils.texi: Revise node structure per new fdl.texi. Jim Meyering 2007-07-15 22:11:45 +02:00
  • 1e07a21459 Remove long-deprecated options. * NEWS: Mention this. * src/df.c, src/ls.c: Remove --kilobytes option. * src/du.c: Remove --kilobytes and --megabytes options. * src/who.c: Remove -i and --idle options. * src/ptx.c: Remove --copyright option. Jim Meyering 2007-06-30 19:43:53 +02:00
  • 78adb282a7 Change interface: make 2nd param _space_-separated, not comma-separated * m4/include-exclude-prog.m4 (gl_INCLUDE_EXCLUDE_PROG): Remove now- unnecessary use of tr. Improve comments. * configure.ac: Adjust caller, as well as the code that ensures the 2nd parameter stays in sync with the list in src/Makefile.am. Jim Meyering 2007-07-14 10:02:57 +02:00
  • 1ff9e235e7 * m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Fix typo: s/$2/$1/. (gl_INCLUDE_EXCLUDE_PROG): Quote first use of $2 parameter. Don't mix comma- and space-separated lists. Patch from Karel Zak. Karel Zak 2007-07-14 09:38:42 +02:00
  • 916fcda554 Warn about non-portable use of unescaped backslash at end of string, and treat it as if it were escaped. * src/tr.c (unquote): Considering that such usage would make GNU tr from coreutils-5.2.1 and earlier *fail*, the least we can do now is to warn about it. Solaris' tr ignores it. * NEWS: Mention this. Jim Meyering 2007-07-13 18:37:16 +02:00
  • d26ba897eb Use proper backslash-quoting inside backticks. * configure.ac: Otherwise we run afoul of strict GNU tr: a string ending in a lone backslash would provoke a failure. Jim Meyering 2007-07-13 14:12:01 +02:00
  • cee14cc42f Expand default-no-install prog list in ./configure --help output, and fix some []-quoting bugs in sed expressions. * configure.ac: Hard-code the list, "arch,su" here as well as in src/Makefile.am, and ensure the two stay in sync. * m4/include-exclude-prog.m4 (gl_INCLUDE_EXCLUDE_PROG): Use $2, rather than the nearly-equivalent shell variable. Karel Zak reported that ./configure --help's output included the literal string, $gl_no_install_progs_default. Jim Meyering 2007-07-12 20:58:53 +02:00
  • 13b2b9c342 Clean up include-exclude-prog.m4. * m4/include-exclude-prog.m4 (gl_ADD_PROG): Don't modify MAN. (gl_REMOVE_PROG): Likewise. Add omitted "\>" in sed regexp. Remove any leading or trailing spaces. (gl_ADD_PROG): Remove any leading space. * configure.ac: Instead, derive $MAN from $optional_bin_progs. Append $(EXEEXT) to *all* names, not just the first one. Jim Meyering 2007-07-12 11:41:32 +02:00
  • e345806d93 If there's a GPL vN copyright comment, require that N == 3. * Makefile.maint (sc_GPL_version): New rule. * tests/misc/arch: Fix the sole violation. Jim Meyering 2007-07-11 11:25:57 +02:00
  • 89dc019451 Skip "arch" test if it's not built. Jim Meyering 2007-07-10 22:37:48 +02:00
  • 471d33582e Add support for enabling/disabling installation of specified programs. * NEWS: Mention new configure-time options. Mention that neither arch nor su is built/installed, by default. * m4/include-exclude-prog.m4: New file. * configure.ac: Use new macro, gl_ADD_PROG, rather than manually appending to OPTIONAL_BIN_PROGS and MAN. Move the code that adds "df" to the list of programs to build from m4/jm-macros into this file. Use gl_INCLUDE_EXCLUDE_PROG, then handle special cases: ginstall, [. (NO_INSTALL_PROGS_DEFAULT): AC_SUBST it. Used by man/Makefile.am. * man/Makefile.am (dist_man_MANS): Remove from this list all man pages corresponding to "bin" programs. Add $(MAN) instead. (optional_mans): Remove all uses. (check-x-vs-1): Adapt to work even though arch and su are typically no longer built (and neither are their .1 files). * src/Makefile.am (install_su): Rename from INSTALL_SU, now that INSTALL_SU has a different meaning. Use the new $(INSTALL_SU) value. Jim Meyering 2007-07-10 22:37:05 +02:00