Red Hat Bugzilla – Bug 1032573
libbsd: fgetln, fgetwln implementations are broken
Last modified: 2015-07-13 13:45:12 EDT
The implementation is broken because it is not thread-safe and does not really follow the behavior of the BSD function (the returned string could be destroyed by independent read operations on other streams).
I couldn't find any external users of these functions (as defined in libbsd), so it's probably safer to remove these functions.
fparseln could be implemented directly on top of getline because it does not return the pointer obtained from fgetln.