mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 01:07:21 +01:00
Due to incorrect include ordering, <dlfcn.h> did not get included, so
RTLD_NOW got incorrectly defined to 1 (which is RTLD_LAZY in FreeBSD). In addition, the comment about FreeBSD requiring SHLIB_SYM_PREFIX to be "_" is incorrect. Submitted by: tobez (except for the bit about the incorrect comment)
This commit is contained in:
parent
8a4ce01402
commit
2cddf86822
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86981
@ -5,6 +5,7 @@
|
||||
* Currently maintained by Andrew G. Morgan <morgan@linux.kernel.org>
|
||||
*
|
||||
* $Id: pam_handlers.c,v 1.3 2001/02/05 06:50:41 agmorgan Exp $
|
||||
* $FreeBSD$
|
||||
*
|
||||
*/
|
||||
|
||||
@ -13,6 +14,11 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "pam_private.h"
|
||||
|
||||
#ifdef PAM_DYNAMIC
|
||||
# ifdef PAM_SHL
|
||||
# include <dl.h>
|
||||
@ -20,17 +26,8 @@
|
||||
# include <dlfcn.h>
|
||||
# endif /* PAM_SHL */
|
||||
#endif /* PAM_DYNAMIC */
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "pam_private.h"
|
||||
|
||||
/* FreeBSD doesn't define this */
|
||||
#ifndef RTLD_NOW
|
||||
# define RTLD_NOW 1
|
||||
#endif
|
||||
|
||||
/* If not required, define as nothing - FreeBSD needs it to be "_"... */
|
||||
/* If not required, define as nothing */
|
||||
#ifndef SHLIB_SYM_PREFIX
|
||||
# define SHLIB_SYM_PREFIX ""
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user