and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

This project is mirrored from git://git.sv.gnu.org/coreutils.git. Pull mirroring failed .
Last successful update .
  1. 26 Mar, 2012 3 commits
  2. 23 Mar, 2012 2 commits
  3. 22 Mar, 2012 4 commits
    • Pádraig Brady's avatar
      maint: avoid a doc syntax check failure · a04110e5
      Pádraig Brady authored
      Prompted by the continuous integration build failure at:
      http://hydra.nixos.org/build/2315847
      
      * doc/coreutils.texi (ln invocation): s/path/file name/
      a04110e5
    • Harald Hoyer's avatar
      ln: add the --relative option · 15b8318e
      Harald Hoyer authored
      With the "--relative --symbolic" options, ln computes the relative
      symbolic link for the user.
      
      So, ln works just as cp, but creates relative symbolic links instead
      of copying the file.
      
      I miss this feature since the beginning of using ln.
      
      $ tree ./
      /
      `-- usr
          |-- bin
          `-- lib
              `-- foo
                  `-- foo
      
      4 directories, 1 file
      
      $ ln -s -v --relative usr/lib/foo/foo usr/bin/foo
      ‘usr/bin/foo’ -> ‘../lib/foo/foo’
      
      $ tree ./
      /
      `-- usr
          |-- bin
          |   `-- foo -> ../lib/foo/foo
          `-- lib
              `-- foo
                  `-- foo
      
      4 directories, 2 files
      
      $ ln -s -v --relative usr/bin/foo usr/lib/foo/link-to-foo
      ‘usr/lib/foo/link-to-foo’ -> ‘foo’
      
      $ tree ./
      /
      `-- usr
          |-- bin
          |   `-- foo -> ../lib/foo/foo
          `-- lib
              `-- foo
                  |-- link-to-foo -> foo
                  `-- foo
      
      4 directories, 3 files
      
      * src/Makefile.am: Reference the relpath module.
      * src/ln.c (usage): Mention the new option.
      (do_link): Call the relative conversion if specified.
      (convert_abs_rel): Perform the relative conversion
      using the relpath module.
      * tests/ln/relative: Add a new test.
      * tests/Makefile.am: Reference the new test.
      * doc/coreutils.texi: Document the new feature.
      * NEWS: Mention the new feature.
      15b8318e
    • Pádraig Brady's avatar
      maint: refactor relpath() from `realpath` for use by `ln` · b1428e31
      Pádraig Brady authored
      * src/relpath.c: Refactored from realpath.c and adjusted
      to support returning the relative path rather than just
      printing to stdout.
      * src/relpath.h: Export the relpath function.
      * src/Makefile.am: Reference the refactored relpath module.
      * po/POTFILES.in: Likewise.
      * src/realpath.c: Adjust to the refactored relpath module.
      b1428e31
    • Pádraig Brady's avatar
      maint: ensure PATH_MAX is set correctly · 049f1dbe
      Pádraig Brady authored
      This reverts part of commit v8.12-103-g54cbe6e6.
      
      * src/system.h: Include gnulib's pathmax.h to honor
      system specific limits, and then we set PATH_MAX only if needed.
      Note pathmax.h no longer uses pathconf ("/", _PC_PATH_MAX).
      Note I didn't reinstate the comments about limits.h inclusion
      order, because pathmax.h includes limits.h anyway.
      049f1dbe
  4. 21 Mar, 2012 3 commits
  5. 20 Mar, 2012 5 commits
    • Eric Blake's avatar
      build: speed up configure for releases · 89bf03c9
      Eric Blake authored
      Since most users won't be building with GNULIB_POSIXCHECK defined in
      CFLAGS, and since we can make ./configure 10% (several seconds!) faster
      by omitting the framework for a posix check, this patch makes it so
      that the framework is omitted by default, while still giving
      instructions for maintainers to re-enable it.
      
      It's been a while since we've used GNULIB_POSIXCHECK; see this email:
      https://lists.gnu.org/archive/html/coreutils/2012-03/msg00126.html
      Some of those failures are because we are intentionally avoiding
      specific gnulib modules (that is, we have chosen not to use things
      like fprintf-posix), but until we work with gnulib to avoid particular
      warnings, wiring up an automatic GNULIB_POSIXCHECK to happen during
      'make my-distcheck' is not feasible.
      
      * configure.ac (gl_ASSERT_NO_GNULIB_POSIXCHECK): Conditionally
      define, according to whether $GNULIB_POSIXCHECK is in environment.
      89bf03c9
    • Jim Meyering's avatar
      tests: avoid spurious misc/factor failure on OpenBSD 5.1 · 56673dbe
      Jim Meyering authored
      * tests/misc/factor: Map OpenBSD 5.1's "unknown option" to our
      expected "invalid option".  Reported by Bruno Haible.
      56673dbe
    • Jim Meyering's avatar
      maint: remove now-superfluous coreutils-path-check rule · cbedb8aa
      Jim Meyering authored
      * dist-check.mk (coreutils-path-check): Now that we set PATH in
      TESTS_ENVIRONMENT, it seems like overkill to make "distcheck"
      rerun all tests just to check this.
      (my-distcheck): Remove sole use.
      cbedb8aa
    • Eric Blake's avatar
      doc: clarify current realpath --relative-base behavior · a6342a32
      Eric Blake authored
      For compatibility with MacOS relpath(1), as seen here:
      
      http://opensource.apple.com/source/bootstrap_cmds/\
      bootstrap_cmds-79/relpath.tproj/relpath.c
      
      we implemented 'realpath --relative-base=dir1 --relative-to=dir2 file'
      in the same way as 'relpath -d dir1 dir2 file'.  This can result
      in --relative-base rendering --relative-to as a no-op if dir1 is a
      child of dir2.  Document this.
      
      * doc/coreutils.texi (realpath invocation): Mention restriction.
      a6342a32
    • Pádraig Brady's avatar
      tests: avoid spurious dd/sparse failure · d42f3a4d
      Pádraig Brady authored
      * tests/dd/sparse: Allow for greater variation in sparse-block counts.
      Reported by Nelson H. F. Beebe and Bruno Haible.
      d42f3a4d
  6. 17 Mar, 2012 1 commit
  7. 16 Mar, 2012 1 commit
  8. 15 Mar, 2012 4 commits
    • Eric Blake's avatar
      realpath: optimize --relative-base usage · be17e3b9
      Eric Blake authored
      There is no need to recompute for every path being visited whether
      the base is a prefix of the relative location.
      
      * src/realpath.c (relpath): Hoist base check...
      (main): ...here.
      Based on a suggestion by Pádraig Brady.
      be17e3b9
    • Eric Blake's avatar
      realpath: let --relative-to default to --relative-base · 9f5aa485
      Eric Blake authored
      Most of the time, if someone wants to filter which paths are
      relative while leaving all others absolute, they also want to
      to the filtering based on the same --relative-to directory.
      Make this easier to specify.
      
      * src/realpath.c (main): Convert error to default.
      * doc/coreutils.texi (realpath invocation): Document this.
      * tests/misc/realpath: Adjust test to match.
      * NEWS: Document it.
      9f5aa485
    • Eric Blake's avatar
      tests: cover more realpath scenarios · 61167bae
      Eric Blake authored
      'realpath --relative-base --relative-to' is identical to
      --relative-base=--relative-to, so the test wasn't covering what
      it claimed.  Expose recent fixes for handling of // on systems
      where // is distinct, and for --relative-base=/.  Add test that
      exposes our design decision that --relative-base that is not a
      prefix of --relative-to is a no-op (if we later change behavior,
      we will also have to change that part of the test).
      
      * tests/misc/realpath: Fix typo. Add some tests.
      61167bae
    • Eric Blake's avatar
      realpath: fix problems with root handling · 5e264bf2
      Eric Blake authored
      When --relative-base is /, all other paths should be treated as
      relative (except for // where it matters).
      
      Also, on platforms like Cygwin where / and // are distinct, realpath
      was incorrectly collapsing // into /.  http://debbugs.gnu.org/10472.
      
      * src/realpath.c (path_prefix, path_common_prefix): Treat /
      and // as having no common match.
      (relpath): Allow for no match even without --relative-base.
      * NEWS: Document this.
      5e264bf2
  9. 14 Mar, 2012 2 commits
  10. 10 Mar, 2012 2 commits
    • Jérémy Compostella's avatar
      dirname: support more than one argument · 57c929da
      Jérémy Compostella authored
      * src/dirname.c (main): Handle new -z option and manage more than one
        argument.
      * doc/coreutils.texi (dirname invocation): Mention it.
      * NEWS (New features): Mention it.
      * tests/misc/dirname: Add a two arguments test.
      57c929da
    • Jérémy Compostella's avatar
      split: support an arbitrary number of split files by default · 7480e2db
      Jérémy Compostella authored
      * src/split.c (next_file_name): If `suffix_auto' is true and the first
      suffix character is 'z', generate a new file file name adding `z' to
      the prefix and increasing the suffix length by one.
      (set_suffix_length): Disable auto suffix width in various cases.
      * tests/split/suffix-auto-length: Test it.
      * doc/coreutils.texi (split invocation): Mention it.
      * NEWS (Improvements): Likewise.
      7480e2db
  11. 09 Mar, 2012 4 commits
  12. 08 Mar, 2012 1 commit
    • Jim Meyering's avatar
      du: fix -x: don't ignore non-directory arguments · f7f398a1
      Jim Meyering authored
      Surprise!  "du -x non-DIR" would print nothing.
      Note that the problem arises only when processing a non-directory
      specified on the command line.  Not surprisingly, "du -x" still
      works as expected for any directory argument.
      
      When performing its same-file-system check, du may skip an entry
      only if it is at fts_level 1 or greater.  Command-line arguments
      are at fts_level == 0 (FTS_ROOTLEVEL).
      
      * src/du.c (process_file): Don't use the top-level FTS->fts_dev
      when testing for --one-file-system (-x).  It happens to be valid
      for directories, but it is always 0 for a non-directory.
      * tests/du/one-file-system: Add tests for this.
      * NEWS (Bug fixes): Mention it.
      Reported by Daniel Stavrovski in http://bugs.gnu.org/10967.
      Introduced by commit v8.14-95-gcfe1040c.
      f7f398a1
  13. 07 Mar, 2012 2 commits
    • Jim Meyering's avatar
      maint: use an optimal-for-coreutils xz compression setting · c1d07237
      Jim Meyering authored
      * cfg.mk: Set XZ_OPT = -8e (determined empirically).
      This sacrifices 8 KiB of compressed tarball size for a 32-MiB
      decrease in the memory required during decompression.  I.e.,
      using -9e would shave off only 8 KiB from the tar.xz file, yet
      would force every decompression process to use 32 MiB more memory.
      c1d07237
    • Jérémy Compostella's avatar
      basename: support more than one argument · a3eb71a9
      Jérémy Compostella authored
      * src/basename.c (perform_basename): New function refactored from
      main() that performs the basename work on a STRING, optionally
      removes a trailing SUFFIX and outputs the result.
      (main): Handle new options.
      * doc/coreutils.texi (basename invocation): Mention new options.
      * test/misc/basename: Add new options test cases.
      * NEWS (New features): Mention it.
      a3eb71a9
  14. 06 Mar, 2012 1 commit
  15. 02 Mar, 2012 1 commit
  16. 29 Feb, 2012 3 commits
    • Rodrigo Campos's avatar
      doc: timeout: document the exit status when run with "-s KILL" · 4724cd8f
      Rodrigo Campos authored
      * src/timeout.c (usage): Document the exit status for this case,
      in --help and thus in the man page.  Word so that it covers
      both the -s9 and -k options.
      * doc/coreutils.texi (timeout invocation): Document the exit
      status for this case.
      4724cd8f
    • Bernhard Voelker's avatar
      tests: compile and link shared object with $CC to make LD_PRELOAD work · 409a7cc7
      Bernhard Voelker authored
      * tests/ls/getxattr-speedup: Compile and link in one step with $CC.
      If the shared object file is created by ld (binutils), then the
      destructor print_call_count() may not run (seen on OpenSuSE 12.1).
      See http://lists.opensuse.org/opensuse/2012-02/msg01342.html
      Thanks to Cristian Rodríguez.
      409a7cc7
    • Roman Rybalko's avatar
      dd: add support for the conv=sparse option · 4e776faa
      Roman Rybalko authored
      Notes:
        Small seeks are not coalesced to larger ones,
        like is done in cache_round() for example.
      
        conv= is used rather then oflag= for FreeBSD compatibility.
      
      * src/dd.c (final_op_was_seek): A new global boolean to flag
      whether the final "write" was converted to a seek.
      (usage): Describe the new conf=sparse option.
      (iwrite): Convert a write of a NUL block to a seek if requested.
      (do_copy): Initialize the output buffer to have a sentinel,
      to allow for efficient testing for NUL output blocks.
      If the last block in the file was converted to a seek,
      then convert back to a write so the size is updated.
      * NEWS: Mention the new feature.
      * tests/dd/sparse: A new test for the feature.
      * tests/Makefile.am: Reference the new test.
      4e776faa
  17. 27 Feb, 2012 1 commit