Skip to content

Commit

Permalink
INI: TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-tikhonov committed Oct 23, 2024
1 parent 1ad6222 commit cc1e481
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/util/sss_ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,32 @@ int sss_ini_open(struct sss_ini *self,
return ret;
}

static int access_check_file(const char *filename)
{
/* TODO */

return EOK;
}

static int access_check_ini(const struct sss_ini *self)
{
int ret;

const struct ref_array *ra_success;

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable ra_success is not used.

if (self->main_config_exists) {
const char *filename = ini_config_get_filename(self->file);
ret = access_check_file(filename);
if (ret != EOK) {
return ret;
}
}

/* TODO: check snippet files */

return EOK;
}

int sss_ini_read_sssd_conf(struct sss_ini *self,
const char *config_file,
const char *config_dir)
Expand Down Expand Up @@ -833,5 +859,7 @@ int sss_ini_read_sssd_conf(struct sss_ini *self,
return ERR_INI_EMPTY_CONFIG;
}

ret = access_check_ini(self);

return ret;
}

0 comments on commit cc1e481

Please sign in to comment.