Lines Matching refs:ret

66     int ret;
75 ret = set_locale();
76 if (ret != EOK) {
78 "set_locale failed (%d): %s\n", ret, strerror(ret));
80 ret = EXIT_FAILURE;
87 while ((ret = poptGetNextOpt(pc)) > 0) {
88 switch (ret) {
93 ret, fini);
101 ret, fini);
118 ret, fini);
127 ret, fini);
136 ret, fini);
143 if (ret != -1) {
144 BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
152 BAD_POPT_PARAMS(pc, _("Specify user to modify\n"), ret, fini);
155 CHECK_ROOT(ret, debug_prg_name);
157 ret = init_sss_tools(&tctx);
158 if (ret != EOK) {
160 "init_sss_tools failed (%d): %s\n", ret, strerror(ret));
161 if (ret == ENOENT) {
166 ret = EXIT_FAILURE;
171 ret = parse_name_domain(tctx, pc_username);
172 if (ret != EOK) {
174 ret = EXIT_FAILURE;
178 ret = sysdb_getpwnam_sync(tctx, tctx->octx->name, tctx->octx);
179 if (ret != EOK) {
182 ret = EXIT_FAILURE;
188 ret = EXIT_FAILURE;
193 ret = parse_groups(tctx, addgroups, &tctx->octx->addgroups);
194 if (ret != EOK) {
198 ret = EXIT_FAILURE;
202 ret = parse_group_name_domain(tctx, tctx->octx->addgroups);
203 if (ret != EOK) {
207 ret = EXIT_FAILURE;
212 ret = check_group_names(tctx, tctx->octx->addgroups, &badgroup);
213 if (ret != EOK) {
216 ret = EXIT_FAILURE;
222 ret = parse_groups(tctx, rmgroups, &tctx->octx->rmgroups);
223 if (ret != EOK) {
227 ret = EXIT_FAILURE;
231 ret = parse_group_name_domain(tctx, tctx->octx->rmgroups);
232 if (ret != EOK) {
236 ret = EXIT_FAILURE;
241 ret = check_group_names(tctx, tctx->octx->rmgroups, &badgroup);
242 if (ret != EOK) {
245 ret = EXIT_FAILURE;
280 ret = sss_mc_refresh_user(pc_username);
281 if (ret != EOK) {
283 "cache.\n", ret);
287 ret = sss_mc_refresh_grouplist(tctx, tctx->octx->addgroups);
288 if (ret != EOK) {
290 "cache.\n", ret);
294 ret = sss_mc_refresh_grouplist(tctx, tctx->octx->rmgroups);
295 if (ret != EOK) {
297 "cache.\n", ret);
303 ret = set_seuser(tctx->octx->name, pc_selinux_user, NULL);
304 if (ret != EOK) {
306 ret = EXIT_FAILURE;
319 ret = tctx->error;
320 switch (ret) {
334 ret = EXIT_FAILURE;
338 ret = EXIT_SUCCESS;
345 exit(ret);