From 4964a685e75c75d662bb0d4f1bb3fd126f49eca2 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Sat, 1 Jun 2013 00:14:07 +0200 Subject: don't include features.h --- pam_pwdfile.c | 1 - 1 file changed, 1 deletion(-) (limited to 'pam_pwdfile.c') diff --git a/pam_pwdfile.c b/pam_pwdfile.c index 9b96fe3..ed7dd15 100644 --- a/pam_pwdfile.c +++ b/pam_pwdfile.c @@ -50,7 +50,6 @@ #endif #endif -#include #include #include #include -- cgit v1.2.3 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(-) (limited to 'pam_pwdfile.c') 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 From 6946f4bd3102d677d9ce43d4c48ed6bec2b13a31 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Sun, 29 Sep 2013 15:50:21 +0200 Subject: update copyright also fix spelling error "GNU Public License" --- pam_pwdfile.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pam_pwdfile.c') diff --git a/pam_pwdfile.c b/pam_pwdfile.c index d574db0..bebbeea 100644 --- a/pam_pwdfile.c +++ b/pam_pwdfile.c @@ -1,11 +1,11 @@ -/* pam_pwdfile.c copyright 1999-2003 by Charl P. Botha - * +/* * pam authentication module that can be pointed at any username/crypted * text file so that pam using application can use an alternate set of * passwords than specified in system password database * - * Copyright (c) Charl P. Botha, 1999-2003. All rights reserved - * + * Copyright (c) 1999-2003 Charl P. Botha + * Copyright (c) 2012-2013 Timo Weingärtner + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -19,8 +19,8 @@ * products derived from this software without specific prior * written permission. * - * ALTERNATIVELY, this product may be distributed under the terms of - * the GNU Public License, in which case the provisions of the GPL are + * ALTERNATIVELY, this product may be distributed under the terms of the + * GNU General Public License, in which case the provisions of the GPL are * required INSTEAD OF the above restrictions. (This clause is * necessary due to a potential bad interaction between the GPL and * the restrictions contained in a BSD-style copyright.) -- cgit v1.2.3