summaryrefslogtreecommitdiffstats
path: root/login-utils/chsh.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:22 +0100
committerKarel Zak2006-12-07 00:26:22 +0100
commit0b0bb92085fc7a7e7d2afe984e43161a2f4ec140 (patch)
treee560f6b005f0e83713e8259f2f12806dd8d39ec6 /login-utils/chsh.c
parentImported from util-linux-2.12h tarball. (diff)
downloadkernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.tar.gz
kernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.tar.xz
kernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.zip
Imported from util-linux-2.12i tarball.
Diffstat (limited to 'login-utils/chsh.c')
-rw-r--r--login-utils/chsh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/chsh.c b/login-utils/chsh.c
index 03c0ec483..aa8e10dcd 100644
--- a/login-utils/chsh.c
+++ b/login-utils/chsh.c
@@ -181,9 +181,9 @@ main (int argc, char *argv[]) {
exit(1);
}
retcode = pam_acct_mgmt(pamh, 0);
- if (retcode == PAM_NEW_AUTHTOK_REQD) {
+ if (retcode == PAM_NEW_AUTHTOK_REQD)
retcode = pam_chauthtok(pamh, PAM_CHANGE_EXPIRED_AUTHTOK);
- } else if (retcode) {
+ if (retcode) {
puts(_("Password error."));
exit(1);
}