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. 05 Mar, 2020 1 commit
  2. 04 Mar, 2020 2 commits
    • Pádraig Brady's avatar
      tests: don't rely on system env(1) being present · c8539d36
      Pádraig Brady authored
      * tests/misc/env-S.pl: `env -i env` will call the system env
      due to the path being cleared, so pass the absolute path
      of our env binary under test to avoid that.  This was seen
      to be an issue on Guix where /usr/bin/env was not available.
      c8539d36
    • Pádraig Brady's avatar
      basenc: avoid undefined behaviour in z85 processing · 0ea65e29
      Pádraig Brady authored
      * src/basenc.c (z85_decode_ctx_init): Ensure we're working
      with unsigned, as otherwise ubsan triggers with:
        src/basenc.c:767:18: runtime error: signed integer overflow:
        43 * 52200625 cannot be represented in type 'int'
      (z85_encode): Likewise to avoid the usban error:
        src/basenc.c:630:26: runtime error:
        left shift of 134 by 24 places cannot be represented in type 'int'
      0ea65e29
  3. 01 Mar, 2020 5 commits
    • Pádraig Brady's avatar
      tests: avoid a false failure on OpenIndiana 11 · f2034aa9
      Pádraig Brady authored
      * tests/misc/timeout-parameters.sh: Split the large timeout
      handling to ...
      * tests/misc/timeout-large-parameters.sh: ... here, so that
      the 3 second delay is contained in its own test, and if
      the test is skipped due invalid handling within timeout(1),
      it will be more apparent.
      Also adjust the check so we skip whenever the kernel timer
      fires immediately, to handle the buggy OpenIndiana 11 kernel also.
      Reported by Bruno Haible.
      f2034aa9
    • Pádraig Brady's avatar
      tests: avoid a hang on GNU/Hurd from 2019 · ab305f74
      Pádraig Brady authored
      * tests/du/8gb.sh: Add a timeout around:
      `dd bs=1 seek=8G of=big < /dev/null`
      ab305f74
    • Pádraig Brady's avatar
      tests: use bash in some scripts to avoid false failures · 04e2b9b1
      Pádraig Brady authored
      * init.cfg (require_bash_as_SHELL_): A new function to replace
      SHELL for the current test, with bash if available.
      This is useful on OpenIndiana 11 where /bin/sh was seen
      to have races in handling of SIGPIPE.
      * tests/misc/seq-epipe.sh: Use the new function to enforce bash.
      * tests/misc/env-signal-handler.sh: Likewise.
      Reported by Bruno Haible
      04e2b9b1
    • Pádraig Brady's avatar
      tests: improve test coverage for ls stat checks · 5cdab9f2
      Pádraig Brady authored
      * tests/ls/stat-free-color.sh: Check for the availability
      of various stat calls individually, and add statx() and fstatat64()
      to the list to check.  Fix the stat counting logic to
      ignore lines like "+++ exited with 0 +++".
      * tests/ls/stat-free-symlinks.sh: Check syscalls other than stat().
      5cdab9f2
    • Bruno Haible's avatar
      tests: enable 4 more tests to be executed on FreeBSD · e840c786
      Bruno Haible authored
      * init.cfg (gcc_shared_libs_): New variable.
      (gcc_shared_): Use it, instead of hardcoding -ldl.
      (require_gcc_shared_): Determine the suitable value
      for gcc_shared_libs_.
      e840c786
  4. 29 Feb, 2020 3 commits
    • Pádraig Brady's avatar
      tests: fix incorrect `|| fail` pattern in tests · ea1c1b75
      Pádraig Brady authored
      * tests/ls/stat-free-symlinks.sh: s/|| fail/|| fail=1/.
      * tests/misc/tee.sh: Likewise.
      * tests/touch/relative.sh: Likewise.
      * cfg.mk (sc_prohibit_or_fail): A new syntax-check to avoid this.
      ea1c1b75
    • Pádraig Brady's avatar
      tests: avoid false failures on darwin 19.2.0 · de73a867
      Pádraig Brady authored
      With these adjustments, all tests pass on macOS Catalina.
      
      * tests/dd/sparse.sh: Adjust so that systems like apfs that
      don't create holes < 16 MiB do not fail erroneously.
      * tests/touch/trailing-slash.sh: Darwin was seen to dereference
      symlinks to files when given a trailing slash, so avoid
      that particular case.
      de73a867
    • Bruno Haible's avatar
      tests: fix test failure on FreeBSD 12 · 54bf2c2f
      Bruno Haible authored
      * tests/misc/csplit-io-err.sh: Limit the effect of the fwrite
      override to streams != stderr, as fwrite is in the error() path there.
      54bf2c2f
  5. 27 Feb, 2020 4 commits
  6. 25 Feb, 2020 4 commits
  7. 24 Feb, 2020 1 commit
    • Pádraig Brady's avatar
      uniq: avoid strcoll() to improve performance and consistency · 8e81d44b
      Pádraig Brady authored
      strcoll() is only significant to uniq(1) if it returns 0,
      and it generally only does so with buggy locales or mismatched
      locales and data.  Some systems may have strcoll()
      return 0 for equivalent normalized unicode forms,
      but for consistency across platforms strcoll() is avoided.
      The various cases are defined in the new test.
      This is consistent with newer POSIX standards as discussed at:
      https://www.austingroupbugs.net/view.php?id=963
      
      * src/uniq.c: s/xstrcoll/memcmp/.
      * tests/local.mk: Reference the new test.
      * tests/misc/uniq-collate.sh: Add a new test.
      * NEWS: Mention the change in behavior.
      Fixes https://bugs.gnu.org/38627
      8e81d44b
  8. 15 Feb, 2020 1 commit
  9. 10 Feb, 2020 1 commit
  10. 09 Feb, 2020 3 commits
  11. 04 Feb, 2020 3 commits
    • Pádraig Brady's avatar
      build: update to latest gnulib · fa6d154b
      Pádraig Brady authored
      Pick up recent build fixes to avoid sysctl.h inclusion on glibc systems,
      restrict the max file size supported by read-file to PTRDIFF_MAX,
      and to avoid a -Werror=unused failure in test-canonicalize.
      fa6d154b
    • Pádraig Brady's avatar
      tests: avoid false failure due to varying /proc/kallsyms · ab108667
      Pádraig Brady authored
      * tests/cp/proc-short-read.sh: Switch to using /proc/cpuinfo,
      rather than /proc/kallsyms which was seen to vary in some cases.
      Fixes https://bugs.gnu.org/39357
      ab108667
    • Pádraig Brady's avatar
      rmdir: fix --ignore-fail-on-non-empty with permissions errors · 1f443fe5
      Pádraig Brady authored
      Since v6.10-21-ged5c4e77 `rmdir --ignore-fail-on-non-empty`
      had reversed the failure status for directories that failed
      to be removed for permissions reasons.  I.E. it would have
      returned a failure status for such non empty dirs, and vice versa.
      
      * src/rmdir.c (errno_may_be_non_empty): Rename from the
      more confusing errno_may_be_empty(), and remove the EEXIST
      case (specific to Solaris), which is moot here since
      handled in errno_rmdir_non_empty().
      (ignorable_failure): Fix the logic error so that
      _non_ empty dirs are deemed to have ignorable failures.
      (main): Fix clobbering of errno by is_empty_dir().
      (remove_parents): Likewise.
      * tests/rmdir/ignore.sh: Add a test case.
      * THANKS.in: Add reporter who fixed the errno handling.
      * NEWS: Mention the bug fix.
      Fixes https://bugs.gnu.org/39364
      1f443fe5
  12. 03 Feb, 2020 3 commits
    • Pádraig Brady's avatar
      build: avoid vector performance warnings in randperm · 709b4d9d
      Pádraig Brady authored
      * configure.ac: Add -Wno-vector-operation-performance to suppress the
      following gcc-9.2 error in gl/lib/randperm.c:
        error: vector operation will be expanded piecewise
      709b4d9d
    • Pádraig Brady's avatar
      build: avoid including sysctl.h on glibc · 18c93828
      Pádraig Brady authored
      * src/uname.c: Avoid unneeded header with GLIBC,
      which has been deprecated since glibc-2.30.
      * src/uptime.c: Likewise.
      18c93828
    • Pádraig Brady's avatar
      ls: support --time=creation to show/sort birth time · 2cecc3cc
      Pádraig Brady authored
      * src/ls.c (usage): Reorganize help for --time,
      and add description for --time=birth.
      (do_statx): Store btime in mtime if available.
      (get_stat_btime): A new function to read the creation time
      from the appropriate stat structure member.
      (cmp_btime): A new function to compare birth time.
      (print_long_format): Output '?' when birth time unavailable.
      * doc/coreutils.texi: Document --time={birth,creation}.
      * tests/local.mk: Reference the new test.
      * tests/ls/birthtime.sh: Add a new test.
      * NEWS: Mention the new feature.
      2cecc3cc
  13. 30 Jan, 2020 1 commit
    • Chris Meyering's avatar
      build: rearrange yes(1) code to prevent GCC 10 warning · dda53d75
      Chris Meyering authored
      * src/yes.c (main): Convert for loop to do-while in order to indicate
      that the loop will be run at least once.
      This avoids the following warning after the second loop:
      src/yes.c:110:20: error: writing 1 byte into a region of size 0
      dda53d75
  14. 01 Jan, 2020 4 commits
  15. 08 Dec, 2019 1 commit
  16. 02 Dec, 2019 2 commits
  17. 12 Nov, 2019 1 commit
    • Paul Eggert's avatar
      doc: remove colon from node name · ad591a52
      Paul Eggert authored
      * doc/sort-version.texi (Minus/Hyphen and Colon characters):
      Rename from “Minus/Hyphen @samp{-} and Colon @samp{:} characters”,
      as texi2any 6.6 complains about colons in node names.
      ad591a52