From 38c0b3bda24f89b0559a3f53e31ec722c186171f Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 27 Apr 2009 12:17:08 +0200 Subject: Add debug param to the tools, fix lock/unlock in sss_usermod --- server/tools/sss_groupadd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/tools/sss_groupadd.c') 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) { -- cgit