]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Do not use strerror on shared libraries
authorCristian Rodríguez <cristian@rodriguez.im>
Sun, 13 Apr 2025 13:22:47 +0000 (09:22 -0400)
committerCristian Rodríguez <cristian@rodriguez.im>
Sun, 13 Apr 2025 13:22:47 +0000 (09:22 -0400)
commitc5850c36e14085cddf8db9e19d447d928fa153d0
treec2349d30fd3fb7eac3614433b4fda257a6e85cd0
parent995a4e2341f699e9eb7f2e2c529e1c8802a61170
Do not use strerror on shared libraries

Using strerror is not safe in shared libraries as it is unknown
what the calling apps may do with the storage behind the scenes.
Using %m is ok, except in contexts that need to be as-safe.
libblkid/src/verify.c
liblastlog2/src/lastlog2.c