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_groupdel.c | |
parent | c1a1b0464b5fad4daa9868b846182ad391f716a2 (diff) | |
download | sssd-38c0b3bda24f89b0559a3f53e31ec722c186171f.tar.gz sssd-38c0b3bda24f89b0559a3f53e31ec722c186171f.tar.bz2 sssd-38c0b3bda24f89b0559a3f53e31ec722c186171f.zip |
Add debug param to the tools, fix lock/unlock in sss_usermod
Diffstat (limited to 'server/tools/sss_groupdel.c')
-rw-r--r-- | server/tools/sss_groupdel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tools/sss_groupdel.c b/server/tools/sss_groupdel.c index 5d405b64..8e07febf 100644 --- a/server/tools/sss_groupdel.c +++ b/server/tools/sss_groupdel.c @@ -112,6 +112,7 @@ static int groupdel_legacy(struct group_del_ctx *ctx) int main(int argc, const char **argv) { int ret = EXIT_SUCCESS; + int pc_debug = 0; struct group_del_ctx *group_ctx = NULL; struct tools_ctx *ctx = NULL; struct sss_domain_info *dom; @@ -120,6 +121,7 @@ int main(int argc, const char **argv) poptContext pc = NULL; 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 }, POPT_TABLEEND }; @@ -148,6 +150,8 @@ int main(int argc, const char **argv) goto fini; } + debug_level = pc_debug; + group_ctx->groupname = poptGetArg(pc); if(group_ctx->groupname == NULL) { usage(pc, "Specify group to delete\n"); |