]> 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>
Mon, 15 Oct 2007 09:53:43 +0000 (11:53 +0200)
commited46e62efb1ea15ffbedac70afa28c293e5ccd8f
tree0fb2944db2faa793b0fbc3eb17eefd86e307e630
parent7054c9edd6f2b4b589f0d5a5d2e1b500614a5f0a
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