]> git.e2factory.org Git - e2factory.git/commit
On glibc, strerror_r does not do what you think it does...
authorTobias Ulmer <tu@emlix.com>
Fri, 1 Mar 2013 14:18:52 +0000 (15:18 +0100)
committerTobias Ulmer <tu@emlix.com>
Fri, 1 Mar 2013 14:18:52 +0000 (15:18 +0100)
commit01e1745e408d70ce6906de0e46b61c72ab2524f9
tree0de1734e65a5e97f189da1678b0be3e92f4e124a
parent956e1615cad4579da29f42f365296c78ed5ed0fd
On glibc, strerror_r does not do what you think it does...

Fixes empty error messages in various places.

glibc will use the GNU version of strerror_r by default, which does not
fill the buffer but rather uses it as a temporary storage space. It
returns a pointer to the error string, which was never used.

Since e2 is not multithreaded, replace it with the simpler strerror()
and remove pointless casts.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2util.c