1
0

0006-pam_unix-fix-compilation-in-case-rpc-rpc.h-is-missin.patch 1020 B

1234567891011121314151617181920212223242526272829
  1. From 2e3ed4c6fb09f84fede589047d37d11783202d34 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Wed, 17 Jun 2015 18:16:18 +0800
  4. Subject: [PATCH 6/7] pam_unix: fix compilation in case rpc/rpc.h is missing.
  5. * modules/pam_unix/pam_unix_passwd.c: conditional compile on the
  6. availability of rpc/rpc.h
  7. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  8. ---
  9. modules/pam_unix/pam_unix_passwd.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c
  12. index 2d330e5..970724a 100644
  13. --- a/modules/pam_unix/pam_unix_passwd.c
  14. +++ b/modules/pam_unix/pam_unix_passwd.c
  15. @@ -410,7 +410,7 @@ static int _do_setpass(pam_handle_t* pamh, const char *forwho,
  16. }
  17. if (on(UNIX_NIS, ctrl) && _unix_comesfromsource(pamh, forwho, 0, 1)) {
  18. -#ifdef HAVE_NIS
  19. +#if defined(HAVE_NIS) && defined(HAVE_RPC_RPC_H)
  20. if ((master=getNISserver(pamh, ctrl)) != NULL) {
  21. struct timeval timeout;
  22. struct yppasswd yppwd;
  23. --
  24. 1.7.10.4