* src/newusers.c: Compilation fix for PAM support (pamh needs to be

global since the function split).
* src/chpasswd.c: Likewise.
* src/chgpasswd.c: Likewise.
* src/chpasswd.c: Avoid implicit conversions to booleans.
This commit is contained in:
nekral-guest
2007-12-31 04:57:54 +00:00
parent e448d1acb1
commit d0b984528a
4 changed files with 31 additions and 15 deletions

View File

@ -70,6 +70,10 @@ static int is_shadow;
static int is_shadow_grp;
#endif
#ifdef USE_PAM
static pam_handle_t *pamh = NULL;
#endif
/* local function prototypes */
static void usage (void);
static int add_group (const char *, const char *, gid_t *);
@ -484,7 +488,6 @@ static void check_flags (void)
static void check_perms (void)
{
#ifdef USE_PAM
pam_handle_t *pamh = NULL;
int retval = PAM_SUCCESS;
struct passwd *pampw;