Lines Matching refs:ret
54 int ret;
59 ret = get_uid_table(mem_ctx, &uid_table);
60 if (ret == ENOSYS) return ret;
61 if (ret != EOK) {
63 return ret;
69 ret = hash_lookup(uid_table, &key, &value);
71 return ret == HASH_SUCCESS ? EOK : ENOENT;
76 int ret;
82 ret = usermod(tctx, tctx->octx);
83 if (ret != EOK) {
84 return ret;
99 ret = errno;
101 "fork failed [%d]: %s\n", ret, strerror(ret));
102 return ret;
122 int ret = EXIT_SUCCESS;
148 ret = set_locale();
149 if (ret != EOK) {
151 "set_locale failed (%d): %s\n", ret, strerror(ret));
153 ret = EXIT_FAILURE;
160 while ((ret = poptGetNextOpt(pc)) > 0) {
161 switch (ret) {
182 if (ret != -1) {
183 BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
188 BAD_POPT_PARAMS(pc, _("Specify user to delete\n"), ret, fini);
191 CHECK_ROOT(ret, debug_prg_name);
193 ret = init_sss_tools(&tctx);
194 if (ret != EOK) {
196 "init_sss_tools failed (%d): %s\n", ret, strerror(ret));
197 if (ret == ENOENT) {
202 ret = EXIT_FAILURE;
207 ret = parse_name_domain(tctx, pc_username);
208 if (ret != EOK) {
210 ret = EXIT_FAILURE;
217 ret = userdel_defaults(tctx, tctx->confdb, tctx->octx, pc_remove);
218 if (ret != EOK) {
220 ret = EXIT_FAILURE;
224 ret = sysdb_getpwnam_sync(tctx,
227 if (ret != EOK) {
236 ret = EXIT_FAILURE;
241 ret = kick_user(tctx);
242 if (ret != EOK) {
243 tctx->error = ret;
250 ret = userdel(tctx, tctx->sysdb, tctx->octx);
251 if (ret != EOK) {
257 ret = del_seuser(tctx->octx->name);
258 if (ret != EOK) {
260 ret = EXIT_FAILURE;
265 ret = is_logged_in(tctx, tctx->octx->uid);
266 switch(ret) {
286 ret = run_userdel_cmd(tctx);
287 if (ret != EOK) {
288 ERROR("The post-delete command failed: %1$s\n", strerror(ret));
293 ret = sss_mc_refresh_user(pc_username);
294 if (ret != EOK) {
296 "cache.\n", ret);
301 ret = remove_homedir(tctx,
307 if (ret == EPERM) {
309 } else if (ret != EOK) {
310 ERROR("Cannot remove homedir: %1$s\n", strerror(ret));
311 ret = EXIT_FAILURE;
316 ret = EOK;
319 if (ret) {
321 "sysdb operation failed (%d)[%s]\n", ret, strerror(ret));
322 switch (ret) {
332 ret = EXIT_FAILURE;
336 ret = EXIT_SUCCESS;
341 exit(ret);