patch-modules_pam_time_pam_time_c 552 B

1234567891011121314
  1. --- Linux-PAM-1.1.8.orig/modules/pam_time/pam_time.c 2013-06-18 16:11:21.000000000 +0200
  2. +++ Linux-PAM-1.1.8/modules/pam_time/pam_time.c 2013-12-21 18:30:19.000000000 +0100
  3. @@ -554,9 +554,11 @@ check_account(pam_handle_t *pamh, const
  4. continue;
  5. }
  6. /* If buffer starts with @, we are using netgroups */
  7. +#ifdef HAVE_INNETGR
  8. if (buffer[0] == '@')
  9. good &= innetgr (&buffer[1], NULL, user, NULL);
  10. else
  11. +#endif
  12. good &= logic_field(pamh, user, buffer, count, is_same);
  13. D(("with user: %s", good ? "passes":"fails" ));