X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ckufio.c;h=298c48e3f52087835f4de4fc4118f5e7a20c41a9;hb=5e42ed7ef542f98b19dec6d8e14dcbd5d1e94d72;hp=4648104ab31d8d9410f5a28611ef9bb13c693e40;hpb=5bbbe0ad1ea84675d10762abb5d6698cd830de18;p=ckermit.git diff --git a/ckufio.c b/ckufio.c index 4648104..298c48e 100644 --- a/ckufio.c +++ b/ckufio.c @@ -490,9 +490,6 @@ extern char * anonroot; static char guestpass[GUESTPASS] = { NUL, NUL }; /* Anonymous "password" */ static int logged_in = 0; /* Set when user is logged in */ static int askpasswd = 0; /* Have OK user, must ask for passwd */ -#ifdef CK_PAM -extern int gotemptypasswd; -#endif /* CK_PAM */ #endif /* CK_LOGIN */ #ifdef CKROOT @@ -8046,12 +8043,8 @@ zvpass(p) char *p; { } } debug(F110,"zvpass","calling pam_authenticate",0); - if (*p -#ifdef CK_LOGIN - || gotemptypasswd -#endif /* CK_LOGIN */ - ) - pam_pw = p; + if (*p) + pam_pw = p; if ((pam_status = pam_authenticate(pamh, 0)) != PAM_SUCCESS) { reply = pam_strerror(pamh, pam_status); debug(F110,"zvpass PAM failure",reply,0);