]> git.ipfire.org Git - thirdparty/cups.git/commit
Use thread-safe getpwnam_r and getpwuid_r in multi-threaded code 274/head
authorPablo Correa Gómez <ablocorrea@hotmail.com>
Sat, 16 Oct 2021 22:09:16 +0000 (00:09 +0200)
committerPablo Correa Gómez <ablocorrea@hotmail.com>
Mon, 18 Oct 2021 11:29:45 +0000 (13:29 +0200)
commit038ceabd05ead6c77d5e20e0972eb2872a82c5c5
treebdf82a33a28a7f4a84be8a9558395d30ebc9a2ec
parent6dd1f2c0e96f36492b6ac10619224e66e15b9496
Use thread-safe getpwnam_r and getpwuid_r in multi-threaded code

getpwnam and getpwuid are thread-unsafe and potentially dangerous
in multi-threaded code. Substitue all their occurrences in
multi-threaded code with getpwnam_r and getpwuid_r, which are
thread-safe.
cups/auth.c
cups/cups-private.h
cups/globals.c
cups/usersys.c