diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-04-27 12:17:08 +0200 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-04-28 11:57:20 -0400 |
commit | 38c0b3bda24f89b0559a3f53e31ec722c186171f (patch) | |
tree | 4f7a0f57f83e1a320bfed199ade41bf45270ae53 /server/tools/sss_groupadd.c | |
parent | c1a1b0464b5fad4daa9868b846182ad391f716a2 (diff) | |
download | sssd-38c0b3bda24f89b0559a3f53e31ec722c186171f.tar.gz sssd-38c0b3bda24f89b0559a3f53e31ec722c186171f.tar.xz sssd-38c0b3bda24f89b0559a3f53e31ec722c186171f.zip |
Add debug param to the tools, fix lock/unlock in sss_usermod
Diffstat (limited to 'server/tools/sss_groupadd.c')
-rw-r--r-- | server/tools/sss_groupadd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tools/sss_groupadd.c b/server/tools/sss_groupadd.c index 09bc89d6f..431e34b67 100644 --- a/server/tools/sss_groupadd.c +++ b/server/tools/sss_groupadd.c @@ -119,8 +119,10 @@ static int groupadd_legacy(struct group_add_ctx *ctx) int main(int argc, const char **argv) { gid_t pc_gid = 0; + int pc_debug = 0; struct poptOption long_options[] = { POPT_AUTOHELP + { "debug",'\0', POPT_ARG_INT | POPT_ARGFLAG_DOC_HIDDEN, &pc_debug, 0, "The debug level to run with", NULL }, { "gid", 'g', POPT_ARG_INT, &pc_gid, 0, "The GID of the group", NULL }, POPT_TABLEEND }; @@ -155,6 +157,8 @@ int main(int argc, const char **argv) goto fini; } + debug_level = pc_debug; + /* groupname is an argument, not option */ group_ctx->groupname = poptGetArg(pc); if(group_ctx->groupname == NULL) { |