]> Savannah Git Hosting - gnulib.git/commit
getusershell: Work around musl bugs.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 19 May 2024 23:40:34 +0000 (16:40 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 19 May 2024 23:40:34 +0000 (16:40 -0700)
commit25279ee571d29948678eef2623254c844f576870
tree905ada0dc1fce9f0ef01cd9d3b48ad9f4e9306bf
parent55d036b9db33c5f40ad636ed6ebb83d906157c37
getusershell: Work around musl bugs.

Reported by Bruno Haible in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00261.html>.

* doc/glibc-functions/getusershell.texi: Mention the musl bug.
* lib/unistd.in.h (getusershell, setusershell, endusershell): Allow the
functions to be declared with the rpl_ prefix.
* m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Prepare functions to be
replaced on musl systems.
(gl_PREREQ_GETUSERSHELL): New macro.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
REPLACE_GETUSERSHELL.
* modules/getusershell (Depends-on): Update module conditions to account
for the function being available but replaced by Gnulib.
(configure.ac): Likewise. Invoke gl_PREREQ_GETUSERSHELL.
ChangeLog
doc/glibc-functions/getusershell.texi
lib/unistd.in.h
m4/getusershell.m4
m4/unistd_h.m4
modules/getusershell
modules/unistd