Lines Matching defs:shells
1081 char **shells = NULL;
1089 shells = talloc_array(tmp_ctx, char *, SHELL_REALLOC_INCREMENT);
1090 if (!shells) {
1098 shells[i] = talloc_strdup(shells, sh);
1099 if (!shells[i]) {
1104 DEBUG(SSSDBG_TRACE_FUNC, "Found shell %s in /etc/shells\n", shells[i]);
1111 "Reached maximum number of shells [%d]. "
1113 "Please check /etc/shells for sanity\n",
1117 shells = talloc_realloc(NULL, shells, char *,
1119 if (!shells) {
1128 shells = talloc_realloc(NULL, shells, char *, i + 1);
1129 if (!shells) {
1134 shells[i] = NULL;
1136 *_shells = talloc_move(mem_ctx, &shells);