Subject: pam_unix is broken on Linux; please commit fix in PR pkg/21413
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/16/2003 07:41:33
(I also BCC'd this to the two people who last edited the file.)

Will someone please commit the simple fix provided in PR pkg/21413?

It fixes: don't reference an include file that has not been installed yet
and uses the correct HAVE_GETSPNAM.

For your convenience I have included it below.

   Jeremy C. Reed
   http://www.reedmedia.net/

Index: security/PAM/patches/patch-ar
===================================================================
RCS file: /cvsroot/pkgsrc/security/PAM/patches/patch-ar,v
retrieving revision 1.3
diff -b -u -r1.3 patch-ar
--- security/PAM/patches/patch-ar	2002/12/23 21:24:00	1.3
+++ security/PAM/patches/patch-ar	2003/05/16 14:35:43
@@ -1,12 +1,12 @@
-$NetBSD: patch-ar,v 1.3 2002/12/23 21:24:00 jlam Exp $
+$NetBSD$

---- modules/pam_unix/support.c.orig	Mon Sep 23 13:33:22 2002
+--- modules/pam_unix/support.c.orig	2002-09-23 10:33:22.000000000 -0700
 +++ modules/pam_unix/support.c
 @@ -6,13 +6,17 @@

  #define _BSD_SOURCE

-+#include <security/_pam_aconf.h>
++#include "../../_pam_aconf.h"
 +
  #include <stdlib.h>
  #include <unistd.h>
@@ -63,7 +63,7 @@
  	pwd = getpwnam(name);	/* Get password file entry... */

  	if (pwd != NULL) {
-+#ifdef GETSPNAM
++#ifdef HAVE_GETSPNAM
  		if (strcmp( pwd->pw_passwd, "*NP*" ) == 0)
  		{ /* NIS+ */
  			uid_t save_euid, save_uid;