]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/utmp: merge file access
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 11 Dec 2023 16:18:38 +0000 (17:18 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 14 Dec 2023 13:40:40 +0000 (07:40 -0600)
commit7f20bb88ad8ec78d64cb2d02f22165a697367d48
tree7f4e14bfdae84aae64396c2caddc88f552ceb3eb
parent0d7cb003b73edd8ce1e0b5c69c95a0ed09c40c40
lib/utmp: merge file access

Avoid checking if the file exists before opening it.

Resolves a CodeQL report of Time-of-check time-of-use filesystem race
condition.
lib/utmp.c