avoid strerror #2794
Exactly, this is why our error system should take care of this. Then we only implement it once, and everyone can safely report errno.
Thread safety is always supported with Elektra. The current uses of strerror are simply a bug.
It is okay if your implementation uses strerror for now (if you find the other strerror APIs too difficult). But it is important that we have a single place where we can fix the problem.
I don't think that is needed. The following is safe to use and message longer than 2048 characters (if they even exist anywhere) wouldn't be read by the user anyway, so IMO its fine to truncate them. A smaller limit would probably, be fine as well.
char buf; strerror_r (errno, buf, sizeof(buf));