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. 09 Mar, 2017 4 commits
  2. 08 Mar, 2017 2 commits
    • Bernhard Voelker's avatar
      build: avoid redundant build of tr with --enable-single-binary · 6dc540ed
      Bernhard Voelker authored
      * src/local.mk [check-duplicate-no-install]: Depend on the
      single-binary tr, or the system tr, as the edge case
      where these are not available only result in the sanity
      check being effectively ignored.
      6dc540ed
    • Assaf Gordon's avatar
      build: fix 'install-html' target · 6fc3ef9e
      Assaf Gordon authored
      Switching to non-recursive makefiles broke the 'install-html' target:
      The gettext plumbing requires an 'install-html' target in po/Makefile.
      This was fixed in gettext v0.19.8.1-41-ge5a008a, but packages using
      older gettext need to manually patch po/Makefile.in.in.
      Reported (for 'sed') and suggested fix by Eric Blake in
      https://bugs.gnu.org/25690 .
      
      * bootstrap.conf (bootstrap_epilogue): Add 'install-{html,pdf,dvi,ps}'
        targets to po/Makefile.in.in (if needed).
      6fc3ef9e
  3. 04 Mar, 2017 2 commits
    • Pádraig Brady's avatar
      maint: bump makeinfo --version requirement to 6.1 · ddbe4b7a
      Pádraig Brady authored
      * bootstrap.conf: s/4.13/6.1/ as versions previous to that
      generated invalid html with interspersed <span> tags that
      were visible to the user.  Version 6.1 is available for a
      year now, and is available in most distros.
      ddbe4b7a
    • Bernhard Voelker's avatar
      doc: avoid makeinfo warning · fe8cc1dd
      Bernhard Voelker authored
      makeinfo issues the following:
      
        doc/coreutils.texi:6568: warning: @sc argument all uppercase,\
          thus no effect.
      
      * doc/coreutils.texi (join invocation): Remove the @sc macro around
      the all uppercase "GNU".
      fe8cc1dd
  4. 03 Mar, 2017 4 commits
  5. 02 Mar, 2017 1 commit
  6. 01 Mar, 2017 5 commits
    • Pádraig Brady's avatar
      doc: give a stronger security warning in md5/sha1 man pages · 8b22614b
      Pádraig Brady authored
      * man/md5sum.x: Give a more direct warning againt the use
      of this hash algorithm for security purposes.
      * man/sha1sum.x: Likewise.
      Suggested by Jim Meyering.
      8b22614b
    • Pádraig Brady's avatar
      expand: avoid an extraneous warning on 32 bit · 3be3da3b
      Pádraig Brady authored
      * src/expand-common (parse-tab-stops): Exit earlier upon overflow
      so another warning isn't issued (on 32 bit) in add_tab_stop().
      Flagged in https://hydra.nixos.org/build/49499970
      3be3da3b
    • Pádraig Brady's avatar
      doc: indicate sha1 has the same limitations as md5 · 109ba444
      Pádraig Brady authored
      * doc/coreutils.texi (sha1sum invocation): Given that a SHA-1
      preimage attack has occurred as documented at http://shattered.io/,
      document sha1sum as having the same limitations as md5sum.
      (md5sum): Parameterize the warning for use in both cases.
      * man/md5sum.x: Mention b2sum(1) as a more secure alternative.
      * man/sha1sum.x: Give the same warning as done for md5sum(1).
      109ba444
    • Pádraig Brady's avatar
      maint: avoid a -Werror=null-dereference with GCC-6.3.1 · 06c3123f
      Pádraig Brady authored
      * src/stty.c (sane_mode): Assert to inform the compiler
      we know the pointer will be valid.
      06c3123f
    • Pádraig Brady's avatar
      expand,unexpand: support specifying a trailing tab size · b1413b60
      Pádraig Brady authored
      * doc/coreutils.texi (expand invocation): Document the feature.
      (unexpand invocation): Likewise.
      * src/expand-common.c (extend_size): A new global to use
      when the last tab stop is prefixed by '/'.
      (set_extend_size): A new function to validate and set
      the new extend_size global.
      (parse_tab_stops): Call set_extend_size() for '/' prefixes.
      (finalize_tab_stops): Ensure a single specified '/' is
      treated like a standard tabsize, but also ensure that
      when '/' is specified with a single other entry that
      we process as a list rather than a tab size.
      (get_next_tab_stop): Use the tab size if set,
      for items after the user specified tab position list.
      * tests/misc/expand.pl: Add test cases
      * NEWS: Mention the new feature.
      Fixes http://bugs.gnu.org/25540
      b1413b60
  7. 26 Feb, 2017 2 commits
    • Pádraig Brady's avatar
      nproc: support OMP_THREAD_LIMIT to set a max value · 9404382f
      Pádraig Brady authored
      This comes from the latest gnulib.
      Also handling of OMP_NUM_THREADS has been adjusted
      to support comma separated values indicating a nesting level,
      in which case the first value is taken.  Also OMP_NUM_THREADS=0
      is now ignored instead of being treated as 1, to match
      the behavior of libgomp.
      
      * NEWS: Mention the OMP_THREAD_LIMIT improvement,
      and OMP_NUM_THREADS now handling nested values.
      * doc/coreutils.texi (nproc invocation): Describe OMP_THREAD_LIMIT
      as a way to set the max value, with OMP_THREAD_LIMIT setting the min.
      * tests/misc/nproc-override.sh: A new test to exercise the
      updated gnulib code with all combinations of these OMP variables.
      * tests/local.mk: Reference the new test.
      9404382f
    • Pádraig Brady's avatar
      build: update gnulib submodule to latest · e1d1b4f4
      Pádraig Brady authored
      e1d1b4f4
  8. 23 Feb, 2017 2 commits
  9. 18 Feb, 2017 1 commit
  10. 16 Feb, 2017 3 commits
    • Bernhard Voelker's avatar
      doc: avoid makeinfo warning · cc3085ba
      Bernhard Voelker authored
      Commit v8.26-38-g99deaff7 introduced this warning:
      
          MAKEINFO doc/coreutils.info
        ./doc/coreutils.texi:10268: \
          warning: `.' or `,' must follow @xref, not `@'.
      
      * doc/coreutils.texi (readlink invocation): Add '.' after @xref macro.
      cc3085ba
    • Paul Eggert's avatar
      maint: xsetmode renamed to xbinary-io · 1c27b560
      Paul Eggert authored
      * bootstrap.conf, src/base64.c, src/cat.c, src/cksum.c:
      * src/head.c, src/md5sum.c, src/od.c, src/split.c, src/sum.c:
      * src/tac.c, src/tail.c, src/tee.c, src/tr.c, src/wc.c:
      Adjust to renaming of the xsetmode module to xbinary-io,
      and of the xsetmode function to xset_binary_mode.
      1c27b560
    • Paul Eggert's avatar
      build: update gnulib submodule to latest · a24e9cc5
      Paul Eggert authored
      a24e9cc5
  11. 15 Feb, 2017 2 commits
    • Paul Eggert's avatar
      maint: use xsetmode, not xfreopen · 75aababe
      Paul Eggert authored
      This fixes a bug noted by Eric Blake.  Code was using xfreopen to
      change files to binary mode, but this fails for stdout when in
      append mode.  Such code should use xsetmode instead.  This affects
      only the port on platforms like MS-Windows which distiguish text
      from binary I/O.
      * bootstrap.conf (gnulib_modules):
      Remove xfreopen and add xsetmode.  Sort.
      * src/base64.c (main):
      * src/cat.c (main):
      * src/cksum.c (cksum):
      * src/head.c (head_file, main):
      * src/md5sum.c (digest_file):
      * src/od.c (open_next_file):
      * src/split.c (main):
      * src/sum.c (bsd_sum_file, sysv_sum_file):
      * src/tac.c (tac_file, main):
      * src/tail.c (tail_file):
      * src/tee.c (tee_files):
      * src/tr.c (main):
      * src/wc.c (wc_file): Use xsetmode, not xfreopen.
      75aababe
    • Paul Eggert's avatar
      build: update gnulib submodule to latest · e5cfadd6
      Paul Eggert authored
      e5cfadd6
  12. 13 Feb, 2017 1 commit
  13. 12 Feb, 2017 1 commit
    • Paul Eggert's avatar
      ln: replace destination links more atomically · 37696788
      Paul Eggert authored
      If the file B already exists, commands like 'ln -f A B' and
      'cp -fl A B' no longer remove B before creating the new link.
      Instead, they arrange for the new link to replace B atomically.
      This should fix a race condition reported by Mike Crowe (Bug#25680).
      * NEWS, doc/coreutils.texi (cp invocation, ln invocation):
      Document this.
      * bootstrap.conf (gnulib_modules): Add symlinkat.
      * src/copy.c, src/ln.c: Include force-link.h.
      * src/copy.c (same_file_ok): It's also OK to remove a destination
      symlink when creating symbolic links, or when the source and
      destination are on the same file system and when creating hard links.
      * src/copy.c (create_hard_link, copy_internal):
      * src/ln.c (do_link):
      Rewrite using force_linkat and force_symlinkat, to close a window
      where the destination temporarily does not exist.
      * src/cp.c (main): Do not set x.unlink_dest_before_opening
      merely because we are in link-creation mode.
      * src/force-link.c, src/force-link.h: New files.
      * src/local.mk (copy_sources, src_ln_SOURCES): Add them.
      * tests/cp/same-file.sh: Adjust test case to match fixed behavior.
      37696788
  14. 10 Feb, 2017 2 commits
    • Tobias Stoeckmann's avatar
      timeout: fix race possibly terminating wrong process · 2f69dba5
      Tobias Stoeckmann authored
      The race is unlikely, as timeout(1) needs to receive a signal
      in the few operations between waitpid() returning and exit().
      Also the system needs to have reallocated the just released pid
      in this time window.
      
      Previously we never disabled the signal handler that sent
      the termination signal to the "child" pid.  However once waitpid()
      has reaped the child, the system is free to allocate that pid,
      so we must ensure we don't process any further signals.
      
      * build-aux/gen-lists-of-programs.sh: Build timeout(1) optionally...
      * configure.ac: ...predicated on sigsuspend() being available.
      * src/timeout.c (block_cleanup): A new function to ensure the
      cleanup() handler is disabled after waitpid has returned.
      (main): Use sigsuspend() to wait with cleanup() enabled but
      disabled once it returns, and thus disabled for the waitpid() call.
      (monitored_pid): Change to the more accurate pid_t.
      * NEWS: Mention the fix.
      
      Fixes http://bugs.gnu.org/25624
      2f69dba5
    • Pádraig Brady's avatar
      doc: note the relationship between realpath and readlink · 99deaff7
      Pádraig Brady authored
      * doc/coreutils.texi (realpath invocation): Mention that realpath
      is the preferred command for canonicalization.
      (readlink invocation): Likewise.
      * man/readlink.x: Likewise.
      99deaff7
  15. 08 Feb, 2017 4 commits
    • Janne Snabb's avatar
      tail: fix output of redundant headers when resuming · 1ddcd24d
      Janne Snabb authored
      * src/tail.c (check_fspec): Only enable printing of the file header
      if we've actually read some data and this is a new file.  Also
      move printing of the file header to...
      (dump_remainder): ...here, to allow printing only when data read.
      * tests/tail-2/overlay-headers.sh: A new test for suspension
      and resumption of tail.
      * tests/local.mk: Reference the new test.
      * NEWS: Mention the fix.
      Fixes http://bugs.gnu.org/23539
      1ddcd24d
    • Pádraig Brady's avatar
      tests: fix tail test race causing false failure · c95c0a0f
      Pádraig Brady authored
      * tests/tail-2/retry.sh: The replacement of the "missing" directory
      is not atomic, and therefore tail(1) can take a different path,
      especially if there is a delay between the rmdir(2) and creat(2).
      This is noticeable for example with `make coverage` because in
      that case the coverage files written by rmdir(1) on exit,
      induce a significant delay thus triggering the issue.
      c95c0a0f
    • Pádraig Brady's avatar
      tail: fix erroneous status about 'giving up' on file · a520942e
      Pádraig Brady authored
      * src/tail.c (recheck): Set f->ignore before we
      use it to show the appropriate error.
      * tests/tail-2/retry.sh: Ensure the "giving up" message
      is not presented.
      a520942e
    • Pádraig Brady's avatar
      doc: only distribute 5 years of ChangeLogs · 2c64bc87
      Pádraig Brady authored
      Remove old log files that have corresponding entries
      in the source code repository.
      This saves about 2.5MB uncompressed, 0.5M compressed.
      
      * Makefile.am (gen-ChangeLog): Adjust to taking all
      logs since a particular version (8.15 in this case).
      Also mention in the truncated log where to get older entries.
      (changelog_etc): Remove the no longer distributed files.
      * build-aux/git-log-fix: Remove now unused entries.
      * ChangeLog-200[5-8]: Delete.
      * doc/ChangeLog-2007: Likewise.
      * po/ChangeLog-2007: Likewise.
      * old/*: Likewise.
      2c64bc87
  16. 07 Feb, 2017 1 commit
  17. 25 Jan, 2017 2 commits
  18. 21 Jan, 2017 1 commit