From 090a8585370c7857a193467fc057828b82ec358f Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Sat, 1 Jun 2013 00:15:00 +0200 Subject: move opening brace out of ifdef to make code folding work --- pam_pwdfile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pam_pwdfile.c b/pam_pwdfile.c index ed7dd15..d574db0 100644 --- a/pam_pwdfile.c +++ b/pam_pwdfile.c @@ -201,10 +201,11 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, #ifdef USE_CRYPT_R crypt_buf.initialized = 0; - if (!(crypted_password = crypt_r(password, stored_crypted_password, &crypt_buf))) { + if (!(crypted_password = crypt_r(password, stored_crypted_password, &crypt_buf))) #else - if (!(crypted_password = crypt(password, stored_crypted_password))) { + if (!(crypted_password = crypt(password, stored_crypted_password))) #endif + { pam_syslog(pamh, LOG_ERR, "crypt() failed"); free(linebuf); return PAM_AUTH_ERR; -- cgit v1.2.3