sflg needs to be global.
This commit is contained in:
parent
ca035a53a0
commit
9a67b445b1
@ -63,6 +63,8 @@
|
|||||||
static char *Prog; /* Program name */
|
static char *Prog; /* Program name */
|
||||||
static int amroot; /* Real UID is root */
|
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 */
|
||||||
|
static int sflg = 0; /* -s - set shell from command line */
|
||||||
|
|
||||||
/* external identifiers */
|
/* external identifiers */
|
||||||
|
|
||||||
@ -417,7 +419,6 @@ static void update_shell (const char *user, char *loginsh)
|
|||||||
int main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *user; /* User name */
|
char *user; /* User name */
|
||||||
int sflg = 0; /* -s - set shell from command line */
|
|
||||||
const struct passwd *pw; /* Password entry from /etc/passwd */
|
const struct passwd *pw; /* Password entry from /etc/passwd */
|
||||||
|
|
||||||
sanitize_env ();
|
sanitize_env ();
|
||||||
|
Loading…
Reference in New Issue
Block a user