]> Savannah Git Hosting - gnulib.git/commit
getusershell: Split file by lines instead of spaces.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 21 May 2024 23:35:09 +0000 (16:35 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 22 May 2024 00:51:52 +0000 (17:51 -0700)
commit4b3be1402af74cfcffe7fa3a77d3887bffb22e66
tree0bea2573f8961292a68ea87556e0bc5dd45c99cc
parenta689d574aad4bf73a5d7e40f8e7e78b5a8676a6a
getusershell: Split file by lines instead of spaces.

* lib/getusershell.c: Include string.h and filename.h
(GNULIB_GETUSERSHELL_SINGLE_THREAD): Remove conditional to include
unlocked stdio functions that are no longer used.
(readname): Remove function.
(getusershell): Use getline and process the string instead of using
readname. Return the first absolute file name.
* modules/getusershell (Depends-on): Remove unlocked-io-internal.
Add getline and filename.
* doc/multithread.texi (Multithreading Optimizations): Don't mention
GNULIB_GETUSERSHELL_SINGLE_THREAD.
ChangeLog
doc/multithread.texi
lib/getusershell.c
modules/getusershell