Skip to content

Commit

Permalink
sss_cache: use ERR_NO_DOMAIN_ENABLED instead of ENOENT
Browse files Browse the repository at this point in the history
Reviewed-by: Alejandro López <allopez@redhat.com>
Reviewed-by: Sumit Bose <sbose@redhat.com>
  • Loading branch information
pbrezina committed Oct 13, 2022
1 parent 4da8613 commit 64c22dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/sss_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ int main(int argc, const char *argv[])
}

ret = init_context(argc, argv, &tctx);
if (ret == ENOENT) {
if (ret == ERR_NO_DOMAIN_ENABLED) {
/* nothing to invalidate; no reason to fail */
ret = EOK;
goto done;
Expand Down Expand Up @@ -909,7 +909,7 @@ static errno_t init_context(int argc, const char *argv[],
}

ret = init_domains(ctx, values.domain);
if (ret == ENOENT && values.domain == NULL) {
if (ret == ERR_NO_DOMAIN_ENABLED && values.domain == NULL) {
/* Nothing to invalidate; do not log confusing messages. */
goto fini;
} else if (ret != EOK) {
Expand Down

0 comments on commit 64c22dd

Please sign in to comment.