diff options
author | Karel Zak | 2013-02-13 13:44:34 +0100 |
---|---|---|
committer | Karel Zak | 2013-02-13 13:44:34 +0100 |
commit | d86918b6eb854de38a6e02b81466fcc0419cef98 (patch) | |
tree | cd3c94684bbe241411918306bbfb76b2af7d9cc8 /login-utils/auth.c | |
parent | libmount: correctly propagate ambivalent blkid probing results (diff) | |
download | kernel-qcow2-util-linux-d86918b6eb854de38a6e02b81466fcc0419cef98.tar.gz kernel-qcow2-util-linux-d86918b6eb854de38a6e02b81466fcc0419cef98.tar.xz kernel-qcow2-util-linux-d86918b6eb854de38a6e02b81466fcc0419cef98.zip |
chsh-chfn: fix bugs, improve compilation
* rename --disable-require-password to --disable-chsh-chfn-password
* is_local() is really unnecessary when linked with libuser
* fix set_value_libuser() returns codes
* fix chfn.c, there is no 'pw', but oldf.pw
* don't link with PAM when--disable-chsh-chfn-password
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/auth.c')
-rw-r--r-- | login-utils/auth.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/login-utils/auth.c b/login-utils/auth.c index 373bd22c1..18312d4f1 100644 --- a/login-utils/auth.c +++ b/login-utils/auth.c @@ -9,11 +9,10 @@ */ #include "auth.h" - #include "pamfail.h" -int auth_pam(const char *service_name, uid_t uid, const char *username) { -#ifdef REQUIRE_PASSWORD +int auth_pam(const char *service_name, uid_t uid, const char *username) +{ if (uid != 0) { pam_handle_t *pamh = NULL; struct pam_conv conv = { misc_conv, NULL }; @@ -43,5 +42,4 @@ int auth_pam(const char *service_name, uid_t uid, const char *username) { * session-oriented activity... */ } return TRUE; -#endif /* REQUIRE_PASSWORD */ } |