]> err.no Git - util-linux/commit
chsh: should use pam_end function to terminate the PAM transaction
authorYu Zhiguo <yuzg@cn.fujitsu.com>
Thu, 6 Sep 2007 06:28:49 +0000 (14:28 +0800)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Oct 2007 22:09:19 +0000 (00:09 +0200)
commitf41aff5a6799299f04989c1b9a89c43018aecb1a
tree41b250e9e628c4e88bf41ea6a5bf4a950e475b2f
parent8c6c72bfe3c09250b4f5f4e044755b000c2c55de
chsh: should use pam_end function to terminate the PAM transaction

chsh will use PAM transaction if macros 'REQUIRE_PASSWORD' and
'HAVE_SECURITY_PAM_MISC_H' are defined, but there is no pam_end function be
used when the PAM transaction be terminated.

This patch also cleanup PAM code in chsh(1).

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/chsh.c