Compilation fix. pamh needs to be global since the split of check_perms().
This commit is contained in:
parent
1ec694eae7
commit
ca9fbc0d8e
@ -65,6 +65,9 @@ static int amroot; /* Real UID is root */
|
|||||||
static char loginsh[BUFSIZ]; /* Name of new login shell */
|
static char loginsh[BUFSIZ]; /* Name of new login shell */
|
||||||
/* command line options */
|
/* command line options */
|
||||||
static int sflg = 0; /* -s - set shell from command line */
|
static int sflg = 0; /* -s - set shell from command line */
|
||||||
|
#ifdef USE_PAM
|
||||||
|
static pam_handle_t *pamh = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* external identifiers */
|
/* external identifiers */
|
||||||
|
|
||||||
@ -231,7 +234,6 @@ static void process_flags (int argc, char **argv)
|
|||||||
static void check_perms (const struct passwd *pw)
|
static void check_perms (const struct passwd *pw)
|
||||||
{
|
{
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
pam_handle_t *pamh = NULL;
|
|
||||||
int retval;
|
int retval;
|
||||||
struct passwd *pampw;
|
struct passwd *pampw;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user