]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: Clean up PAM resources in correct order
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 24 Mar 2026 08:11:45 +0000 (09:11 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 24 Mar 2026 08:11:45 +0000 (09:11 +0100)
commit28fcbb65b75fa99d2b93a58d7937f933de769eea
tree1f7b2bf8ef5566085d213d5a26b8ec63165ed4a4
parentef989e78c96056dcca0209d67b3d506137cd454b
login: Clean up PAM resources in correct order

Close the session first, then remove the credentials. This keeps the
proper order since credentials are set up first, then the session is
opened.

Also, this brings login's cleanup into the same order as su.

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