]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: update gnulib submodule to latest
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Jun 2021 00:41:37 +0000 (17:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Jun 2021 01:05:57 +0000 (18:05 -0700)
commit4edad9e1210dfaa4c8630bad16d0b2e6090de790
treec2f9491ead2fd9906c41229b4330cb5b0a2f599a
parent370c294018316f005bb259f51024497333d24ee0
build: update gnulib submodule to latest

Coreutils mistakenly did not list xstrndup as a module
that it depends on directly.  When the latest Gnulib removed
the dirname module's dependency on xstrndup, this mistake
caused coreutils to not build.  Since all of Coreutils's
uses of xstrndup know the string length, xmemdup0 is a better
match for what's needed.  Since the size args are typically
signed or derived from subtracting pointers, the new Gnulib
ximemdup0 function is a better match yet.
So, use ximemdup0 instead of xstrndup.
* src/cut.c, src/dircolors.c, src/expand-common.c, src/expand.c:
* src/numfmt.c, src/set-fields.c, src/unexpand.c:
Do not include xstrndup.h; no longer needed.
* src/dircolors.c (parse_line):
* src/expand-common.c (parse_tab_stops):
* src/numfmt.c (parse_format_string):
* src/set-fields.c (set_fields):
Use ximemdup0 instead of xstrndup.
gnulib
src/cut.c
src/dircolors.c
src/expand-common.c
src/expand.c
src/numfmt.c
src/set-fields.c
src/unexpand.c