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. 20 Jan, 2016 1 commit
  2. 19 Jan, 2016 5 commits
    • Pádraig Brady's avatar
      tests: avoid false failure in tail inotify test · f967d5bf
      Pádraig Brady authored
      * tests/tail-2/wait.sh: Restrict inotify specific test portion
      to local file systems and also not with ---disable-inotify specified.
      Failure noticed on NFS.
      f967d5bf
    • Pádraig Brady's avatar
      tests: avoid false failure due to remove() ignoring u-w on NFS · 7c2e4234
      Pádraig Brady authored
      * tests/rm/rm1.sh: Also remove the group write bit which
      was required on one NFS setup at least.  Note u-w was
      enough to deny file creation, g-w was also required to
      deny file removal.
      * tests/rm/cycle.sh: Likewise.
      * tests/mv/perm-1.sh: Likewise.
      7c2e4234
    • Pádraig Brady's avatar
      tests: avoid false failure in preserve-slink-time.sh on GPFS · b4f10133
      Pádraig Brady authored
      * tests/cp/preserve-slink-time.sh: Add a delay between the
      ln and the cp so that there is enough difference between
      the timestamps so GPFS won't discard the update.
      Reported by Assaf Gordon.
      b4f10133
    • Pádraig Brady's avatar
      tests: avoid false failure in shred-passes.sh · f0dc5ec6
      Pádraig Brady authored
      * tests/misc/shred-passes.sh: Specify an exact amount to shred,
      to avoid running out of simulated random data on file systems
      with a large st_blksize like GPFS for example.
      Reported by Assaf Gordon.
      f0dc5ec6
    • Pádraig Brady's avatar
      tail: disable inotify with only non existent files · dbff2508
      Pádraig Brady authored
      tests/tail-2/F-headers.sh and test/tail-2/retry.sh fail on
      on remote file systems due to tail going into inotify mode
      due to not being able to determine the remoteness of the
      non existent files.
      
      * src/tail.c (any_non_remote_file): A new function used
      to disable inotify when there are no open files, as
      we can't determine remoteness in that case.
      * NEWS: Mention the bug fix.
      dbff2508
  3. 18 Jan, 2016 4 commits
    • Pádraig Brady's avatar
      all: don't unconditionally use leaf optimization for NFS · 6e2208e0
      Pádraig Brady authored
      * gnulib: Update to latest where the only change is to
      not unconditionally enable leaf optimization for fts on NFS,
      as it was seen to abort() with some NFS servers as per:
      https://bugzilla.redhat.com/1299169
      This affects utilities that traverse directories like
      cp, rm, chmod etc.
      * NEWS: Adjust the improvement message to leave only XFS.
      6e2208e0
    • Assaf Gordon's avatar
      tests: adjust memory limits in head-c.sh · 4e96050b
      Assaf Gordon authored
      * tests/misc/head-c.sh: Further increase the limit to 8MB over
      the base test command.  5.1MB was seen as minimum extra needed
      on FreeBSD 9.3 x86_64.
      4e96050b
    • Pádraig Brady's avatar
      tests: adjust delays to avoid false positives · 3f02d93b
      Pádraig Brady authored
      * tests/rm/dangling-symlink.sh: The effective delay was only
      1.5s.  So delay before the operation, and increase the iteration
      count by 1 to increase the delay to 6.3s.  This failure was
      noticed once on a FreeBSD 10.2 x86_64 virtual machine.
      * tests/dd/stats.sh: Remove quotes on sleep argument
      to ensure arguments are accumulated appropriately.
      * tests/du/move-dir-while-traversing.sh: sleep before operation,
      to increase the effective delay from 1.6s to 3.2s.
      * tests/tail-2/flush-initial.sh: Likewise.
      * tests/tail-2/pipe-f2.sh: Sleep first so that the effective delay
      matches the commented value.
      3f02d93b
    • Pádraig Brady's avatar
      test: skip test rather than fail with Solaris 10 sed · cc05c3c1
      Pádraig Brady authored
      * tests/rm/r-root.sh: This test was seen to ERROR due to
      sed input not having a terminating '\n'.  Therefore just skip
      with diagnostics upon failure to adjust the error output with sed.
      Reported by Assaf Gordon.
      cc05c3c1
  4. 16 Jan, 2016 5 commits
  5. 15 Jan, 2016 5 commits
    • Pádraig Brady's avatar
      tests: remove a non portable localtime test · 3aa84d02
      Pádraig Brady authored
      * tests/misc/date.pl: This test was dependent on perl
      unconditionally calling the system localtime() as date(1) does.
      However perl has its own configure checks in place to avoid buggy
      localtime implementations.  Therefore comment out this test
      as a FIXME for now.  This test was seen to fail on FreeBSD 10
      where localtime() returns nonsense values instead of failing
      for arguments >= 2^56.
      3aa84d02
    • Pádraig Brady's avatar
      tests: adjust memory limits in head-c.sh · 7648870f
      Pádraig Brady authored
      * tests/misc/head-c.sh: Further increase the limit, to account
      for the fact that head(1) needs at least 1.576MB over the base test
      command on FreeBSD 10.  4MB should be enough headroom while
      still providing over allocation protection.
      Reported by Assaf Gordon.
      7648870f
    • Pádraig Brady's avatar
      tests: simplify invalid signal determination for kill -l · 4c7d82f1
      Pádraig Brady authored
      * src/operand2sig.c (operand2sig): Add a detailed comment explaining
      why we validate even very large shell exit status values.
      * tests/misc/kill.sh: Add a test case for the ksh scheme.
      Simplify the INVALID signal number determination which also avoids
      a false failure on systems like FreeBSD 10 with incomplete
      signal list (caused by inaccurate NSIG).
      4c7d82f1
    • Pádraig Brady's avatar
      tests: support older fallocate number formats · b955a4fb
      Pádraig Brady authored
      * tests/cp/fiemap-extents.sh: Support RHEL6 fallocate
      which doesn't support IEC suffixes like "MiB" on numbers.
      Also add some extra framework_failure_ protections.
      Reported by Assaf Gordon.
      b955a4fb
    • Pádraig Brady's avatar
      tests: avoid coredumps when determining memory limits · 89f7adb1
      Pádraig Brady authored
      * init.cfg (get_min_ulimit_v_): Refactor ulimit call to...
      (ulimit_supported_): ...here, and add calls to avoid coredumps.
      89f7adb1
  6. 14 Jan, 2016 1 commit
    • Pádraig Brady's avatar
      sort: with --debug, flag setlocale() failures on OpenBSD · 611e7e02
      Pádraig Brady authored
      Locale categories are not equivalent on OpenBSD,
      and LC_COLLATE only supports "C" for example.
      Now LC_ALL is supported to set multiple other categories
      on OpenBSD, so setlocale(LC_ALL, "") returns a string
      indicating which categories were updated and which ignored.
      Therefore...
      
      * src/sort.c (main): ...Call setlocale(LC_COLLATE, "")
      to explicitly check whether a specified LC_ALL or
      LC_COLLATE environment variable value is supported
      for the LC_COLLATE category.  Also use !! to explicitly
      convert to bool to support c89 systems where bool is an int,
      and thus would get values > 1.
      Reported by Assaf Gordon.
      611e7e02
  7. 13 Jan, 2016 15 commits
    • Pádraig Brady's avatar
      maint: remove temporary doc/constants.texi-t during build · 4ab8704d
      Pádraig Brady authored
      * doc/local.mk (constants.texi): Remove temp file.
      4ab8704d
    • Pádraig Brady's avatar
      maint: fix old spelling mistakes in NEWS · 7ebc4d84
      Pádraig Brady authored
      * NEWS: s/descendent/descendant/; s/indiscriminite/indiscriminate/.
      * cfg.mk (old_NEWS_hash): Update via `make update-NEWS-hash`.
      7ebc4d84
    • Pádraig Brady's avatar
      doc: suggest dd "sync" flag to maximize "nocache" effectiveness · 6ceb7ef8
      Pádraig Brady authored
      doc/coreutils.texi (dd invocation): Add oflag=sync to the streaming
      example.  Also reference the "direct" flag.  Mention this is only
      a request to the system.
      * src/dd.c (usage): Mention the "sync" flag along with "nocache".
      Also mention that it's only a request to drop the cache.
      * THANKS.in: Add reporter Francois Rigault.
      6ceb7ef8
    • Pádraig Brady's avatar
      doc: mention the '0#' printf flags with stat %a · a0c5313d
      Pádraig Brady authored
      * src/stat.c (usage): Mention the '#' and '0' flags are useful with %a.
      * doc/coreutils.texi (stat invocation): Likewise.  Also give an example
      printing unambiguous octal output.
      Reported at http://bugs.debian.org/810539
      a0c5313d
    • Pádraig Brady's avatar
      mv: fix data loss with repeated source dir and same destination · d506af44
      Pádraig Brady authored
      commit v8.23-31-g90aa291c failed to consider this case,
      where the previous rename has failed, thus causing the
      following to remove the specified directory:
      
        mv dir dir dir
      
      * src/copy.c (copy_internal): Assume this rename attempt has
      succeeded, as a previous failure will already have been handled,
      and we don't want to remove the source directory in this case.
      * tests/cp/duplicate-sources.sh: Consolidate this test file to...
      * tests/mv/dup-source.sh: ...here.  Add test cases for same
      source and dest.
      * tests/local.mk: Remove the consolidated test.
      * NEWS: Mention the bug fix.
      
      Reported at https://bugzilla.redhat.com/1297464
      d506af44
    • Pádraig Brady's avatar
      tests: include part of wc-files0.sh skipped by mistake · 2370c64a
      Pádraig Brady authored
      * tests/misc/wc-files0.sh: $fail is always set to 0,
      so correct the test to include that part of the test case.
      2370c64a
    • Pádraig Brady's avatar
      wc: avoid ambiguous output with '\n' in file names · 3ed89ae9
      Pádraig Brady authored
      * src/wc.c (write_counts): Shell escape the file name
      if it contains '\n' so only a single line per file is output.
      * tests/misc/wc-files0.sh: Add a test case.
      * NEWS: Mention the improvement.
      3ed89ae9
    • Assaf Gordon's avatar
      numfmt: add the -z,--zero-terminated option · 672663e1
      Assaf Gordon authored
      * doc/coreutils.texi (numfmt invocation): Reference the description.
      * src/numfmt.c: Parameterize '\n' references.
      * tests/misc/numfmt.pl: Add tests for character and field processing.
      * NEWS: Mention the new feature.
      672663e1
    • Pádraig Brady's avatar
      paste: add the -z,--zero-terminated option · 8297568e
      Pádraig Brady authored
      * doc/coreutils.texi (paste invocation): Reference -z description.
      * src/paste.c (main): Parameterize the use of '\n'.
      * tests/misc/paste.pl: Add test cases.
      * NEWS: Mention the new feature.
      8297568e
    • Pádraig Brady's avatar
      comm: support NUL --output-delimiter for consistency · 0e46753d
      Pádraig Brady authored
      * src/comm.c (main): Track the output delimiter length,
      so that it can be adjusted to 1 for the NUL delimiter.
      Also rename the global variable from "delimiter" to
      "col_sep" so its use is more obvious, and to distinguish
      from the recently added "delim" global variable.
      * tests/misc/comm.pl: Adjust accordingly.
      0e46753d
    • Pádraig Brady's avatar
      comm: add the -z,--zero-terminated option · f3b4def5
      Pádraig Brady authored
      * doc/coreutils.texi (comm invocation): Reference option description.
      * src/comm.c (main): Use readlinebuffer_delim() to support
      a parameterized delimiter.
      * tests/misc/comm.pl: Add test cases.
      * NEWS: Mention the new feature.
      f3b4def5
    • Pádraig Brady's avatar
      tac: support an empty (NUL) --separator · 826c98b0
      Pádraig Brady authored
      * doc/coreutils.texi (tac invocation): Mention the
      NUL delineation with an empty --separator.
      * src/tac.c (main): Allow an empty separator when -r not specified.
      * tests/misc/tac.pl: Add test cases.
      * NEWS: Mention the new feature.
      Fixes http://bugs.gnu.org/8103
      826c98b0
    • Pádraig Brady's avatar
      cut: add the -z,--zero-terminated option · a499a0ce
      Pádraig Brady authored
      * doc/coreutils.texi (cut invocation): Reference the description.
      * src/cut.c: Parameterize '\n' references.
      * tests/misc/cut.pl: Add tests for character and field processing.
      * NEWS: Mention the new feature.
      a499a0ce
    • Richard Russon's avatar
      head,tail: add the -z,--zero-terminated option · bc94551f
      Richard Russon authored
      * doc/coreutils.texi: Reference the option description.
      * src/head.c: Parameterize the delimiter character.
      * src/tail.c: Likewise.
      * tests/misc/head.pl: Add test case.
      * tests/misc/tail.pl: Likewise.
      * NEWS: Mention the new feature.
      bc94551f
    • Pádraig Brady's avatar
      join,sort,uniq: with -z, treat '\n' as a field separator · b2eadd10
      Pádraig Brady authored
      * NEWS: Mention the change in behavior.
      * doc/coreutils.texi (newlineFieldSeparator): A new description,
      referenced from ({join,sort,uniq} invocation).
      * src/system.h (field_sep): A new inline function to determine
      if a character is a field separator.
      * src/join.c (usage): s/whitespace/blank/ to be more accurate
      wrt which characters are field separators.
      (xfields): s/isblank/field_sep/.
      * src/sort.c (inittables): Likewise.
      * src/uniq.c (find_field): Likewise.
      * tests/misc/join.pl: Adjust -z test, and add a test/example
      for processing the whole record with field processing.
      * tests/misc/sort.pl: Add -z test cases, including case with '\n'.
      * tests/misc/uniq.pl: Add -z -f test case with \n.
      b2eadd10
  8. 10 Jan, 2016 1 commit
    • Bernhard Voelker's avatar
      tests: fix races wrt output files of background processes · d44ae881
      Bernhard Voelker authored
      At least the false positive in tail-2/follow-stdin.sh could be seen
      on a 4-core i5 system with -j8.  Fix similar cases. too.
      
      * tests/tail-2/follow-stdin.sh: Empty the 'out' file in each iteration.
      Otherwise, under heavy system load, 'check_tail_output' would see the
      expected output from the previous round before tail would have the
      chance to come up in the background.
      While at it, move the creation of the 'exp' file out of the loop.
      * tests/dd/stats.sh: Empty the output file of the background process
      here, too.
      * tests/misc/cat-buf.sh: Likewise.
      * tests/misc/stdbuf.sh: Likewise.
      * tests/tail-2/wait.sh: Likewise.
      d44ae881
  9. 06 Jan, 2016 2 commits
    • Pádraig Brady's avatar
      stty: support "flusho" local setting · 3d7b822e
      Pádraig Brady authored
      This is used to discard terminal output on FreeBSD based systems.
      
      * src/stty.c (mode_info): Add FLUSHO where supported.
      (usage): Document for "local" and "combination" settings.
      * doc/coreutils.texi (local stty settings): Document,
      mentioning that this option is supported but ignored on GNU/Linux.
      3d7b822e
    • Pádraig Brady's avatar
      stty: support [-]drain setting to control waiting for pending Tx · cb7d8b90
      Pádraig Brady authored
      Instead of commit v8.24-132-g5171befc which only provides
      control to disable this behavior (with -I), provide
      the symmetrical "[-]drain" special setting.
      
      * src/stty.c (main): Parse the [-]drain setting instead of -I,
      and treat like a global option.
      (usage): Adjust accordingly.
      * tests/misc/stty.sh: Test "drain" with and without options.
      * NEWS: Mention the new feature.
      cb7d8b90
  10. 04 Jan, 2016 1 commit