Lines Matching defs:ret
35 int ret = EXIT_SUCCESS;
50 ret = set_locale();
51 if (ret != EOK) {
53 "set_locale failed (%d): %s\n", ret, strerror(ret));
55 ret = EXIT_FAILURE;
62 if ((ret = poptGetNextOpt(pc)) < -1) {
63 BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
70 BAD_POPT_PARAMS(pc, _("Specify group to delete\n"), ret, fini);
73 CHECK_ROOT(ret, debug_prg_name);
75 ret = init_sss_tools(&tctx);
76 if (ret != EOK) {
78 "init_sss_tools failed (%d): %s\n", ret, strerror(ret));
79 if (ret == ENOENT) {
84 ret = EXIT_FAILURE;
89 ret = parse_name_domain(tctx, pc_groupname);
90 if (ret != EOK) {
92 ret = EXIT_FAILURE;
96 ret = sysdb_getgrnam_sync(tctx, tctx->octx->name, tctx->octx);
97 if (ret != EOK) {
106 ret = EXIT_FAILURE;
111 ret = groupdel(tctx, tctx->sysdb, tctx->octx);
112 if (ret != EOK) {
117 ret = sss_mc_refresh_group(pc_groupname);
118 if (ret != EOK) {
120 "cache.\n", ret);
124 ret = EOK;
127 if (ret) {
129 "sysdb operation failed (%d)[%s]\n", ret, strerror(ret));
130 switch (ret) {
140 ret = EXIT_FAILURE;
144 ret = EXIT_SUCCESS;
149 exit(ret);