sss_debuglevel.c revision 95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive Pavel Březina <pbrezina@redhat.com>
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive Copyright (C) 2011 Red Hat
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive This program is free software; you can redistribute it and/or modify
51853aa2ebfdf9903a094467e1d02099f143639daaron it under the terms of the GNU General Public License as published by
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive the Free Software Foundation; either version 3 of the License, or
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive (at your option) any later version.
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive This program is distributed in the hope that it will be useful,
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive but WITHOUT ANY WARRANTY; without even the implied warranty of
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive GNU General Public License for more details.
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive You should have received a copy of the GNU General Public License
a27e9e05958bc51ea09edb8d8d862fe8b125313bslive along with this program. If not, see <http://www.gnu.org/licenses/>.
a27e9e05958bc51ea09edb8d8d862fe8b125313bslivestatic errno_t set_debug_level(struct debuglevel_tool_ctx *tool_ctx,
a27e9e05958bc51ea09edb8d8d862fe8b125313bslivestatic errno_t connect_to_confdb(TALLOC_CTX *ctx, struct confdb_ctx **cdb_ctx);
a27e9e05958bc51ea09edb8d8d862fe8b125313bslivestatic errno_t get_confdb_sections(TALLOC_CTX *ctx, struct confdb_ctx *confdb,
222f0f03c2f9ee6343c18f80f0cb6e9aad21bc58slive /* parse parameters */
1f2a7403f1389cbf2da0a53a2b2fb425dea75506erikabele pc = poptGetContext(argv[0], argc, argv, long_options, 0);
1f2a7403f1389cbf2da0a53a2b2fb425dea75506erikabele /* get debug level */
if (pc_config_file) {
goto fini;
goto fini;
fini:
return ret;
int ret;
int err;
return ENOMEM;
goto done;
goto done;
* Change atime and mtime of sssd.conf,
errno = 0;
done:
return ret;
int ret;
return ret;
return errno;
return EOK;
int ret;
return ENOMEM;
return ret;
char ***output_sections)
int ret;
int domain_count = 0;
char **sections;
const char *known_services[] = {
return ENOMEM;
domain_count++;
goto fail;
for (i = 0; i < known_services_count; i++) {
goto fail;
goto fail;
return EOK;
fail:
return ret;
int ret;
*out_pid = 0;
errno = 0;
goto done;
if (ret != 0) {
SSSD_PIDFILE));
goto done;
if (*out_pid == 0) {
return EINVAL;
done:
return ret;
long value;
char *endptr;
errno = 0;
return value;
long value;
char *endptr;
errno = 0;
return SSSDBG_INVALID;