]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setpwnam: only unlock when actually locked
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 4 Jan 2026 15:28:39 +0000 (16:28 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 4 Jan 2026 15:28:39 +0000 (16:28 +0100)
commita7aa54eeeb07bb27f151e42dd91085256228e281
tree7d09f57029a552269079838883a739c585e2bb14
parent859450b47fd0248b00f155f5d85ea728996cf719
setpwnam: only unlock when actually locked

If no lock is held, do not unlock. With glibc this is fine, but let's
not put too many expectations on library implementations.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
login-utils/setpwnam.c