From 905e14ee835ae3cd0775c0915add2cff9184bcf6 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 30 Jul 2011 01:47:52 +0000 Subject: [PATCH] * src/useradd.c: Remove unused Zflg. --- ChangeLog | 4 ++++ src/useradd.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 09fd11e1..1f10534e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-07-30 Nicolas François + + * src/useradd.c: Remove unused Zflg. + 2011-07-30 Nicolas François * src/chgpasswd.c: Fix typo sp -> sg. sg_namp -> sg_name diff --git a/src/useradd.c b/src/useradd.c index b7d51715..a60aa687 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -148,8 +148,7 @@ static bool rflg = false, /* create a system account */ sflg = false, /* shell program for new account */ uflg = false, /* specify user ID for new account */ - Uflg = false, /* create a group having the same name as the user */ - Zflg = false; /* new selinux user */ + Uflg = false; /* create a group having the same name as the user */ static bool home_added = false; @@ -1201,7 +1200,6 @@ static void process_flags (int argc, char **argv) case 'Z': if (is_selinux_enabled () > 0) { user_selinux = optarg; - Zflg = true; } else { fprintf (stderr, _("%s: -Z requires SELinux enabled kernel\n"),