Rev 228065 (change bsd.own.mk -> bsd.init.mk) broke pam_unix.so by causing

the LDADD/DPADD to lose the -lpam, and causing openpam_dynamic() to fail
due to "openpam_get_options" being undefined.

This would cause obscure console log messages like:
  openpam_dynamic(): No error: 0
  openpam_load_module(): no pam_unix.so found
and other helpful messages which are no help in diagnosing the problem.

Fortunately this change was not mfc'ed to 9.x, it isn't broken there.
This commit is contained in:
peter 2012-01-18 18:26:56 +00:00
parent 3ec7d90475
commit e5fa065e08

View File

@ -40,8 +40,8 @@ LIB= pam_unix
SRCS= pam_unix.c
MAN= pam_unix.8
DPADD= ${LIBUTIL} ${LIBCRYPT}
LDADD= -lutil -lcrypt
DPADD+= ${LIBUTIL} ${LIBCRYPT}
LDADD+= -lutil -lcrypt
.if ${MK_NIS} != "no"
CFLAGS+= -DYP