diff options
author | Thorsten Kukuk <kukuk@suse.com> | 2023-01-31 11:41:28 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-01-31 10:41:28 +0000 |
commit | a44743a0bf50c8c6fedd8304524536aa040fd3b3 (patch) | |
tree | fb2812d7733ebb96018eb259f35f5890c6544066 /modules/pam_unix/pam_unix_passwd.c | |
parent | d13a8ea18f852e97201269e55255a14fe4fe5d0f (diff) | |
download | pam-a44743a0bf50c8c6fedd8304524536aa040fd3b3.tar.gz pam-a44743a0bf50c8c6fedd8304524536aa040fd3b3.tar.bz2 pam-a44743a0bf50c8c6fedd8304524536aa040fd3b3.zip |
pam_unix: don't link against yppasswd_xdr if NIS is disabled
* configure.ac: Define HAVE_NIS if NIS is enabled.
* modules/pam_unix/Makefile.am: Don't link against yppasswd_xdr.c
if NIS is disabled.
* modules/pam_unix/pam_unix_passwd.c: Don't redefine HAVE_NIS.
Resolves: https://github.com/linux-pam/linux-pam/issues/523
Diffstat (limited to 'modules/pam_unix/pam_unix_passwd.c')
-rw-r--r-- | modules/pam_unix/pam_unix_passwd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index ca721475..857ddd45 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -72,10 +72,6 @@ #include "passverify.h" #include "bigcrypt.h" -#if (defined(HAVE_YP_GET_DEFAULT_DOMAIN) || defined(HAVE_GETDOMAINNAME)) && defined(HAVE_YP_MASTER) -# define HAVE_NIS -#endif - #ifdef HAVE_NIS # include <rpc/rpc.h> |