Lines Matching refs:scriptEnv
2106 if (ip->client->scriptEnv == NULL) in priv_script_init()
2107 ip->client->scriptEnv = in priv_script_init()
2109 if (ip->client->scriptEnv == NULL) in priv_script_init()
2112 ip->client->scriptEnv[0] = strdup(CLIENT_PATH); in priv_script_init()
2113 if (ip->client->scriptEnv[0] == NULL) in priv_script_init()
2116 ip->client->scriptEnv[1] = NULL; in priv_script_init()
2365 envp = ip->client->scriptEnv; in priv_script_go()
2421 for (i = 0; client->scriptEnv[i]; i++) in script_set_env()
2422 if (strncmp(client->scriptEnv[i], name, namelen) == 0 && in script_set_env()
2423 client->scriptEnv[i][namelen] == '=') in script_set_env()
2426 if (client->scriptEnv[i]) in script_set_env()
2428 free(client->scriptEnv[i]); in script_set_env()
2435 newscriptEnv = realloc(client->scriptEnv, in script_set_env()
2438 free(client->scriptEnv); in script_set_env()
2439 client->scriptEnv = NULL; in script_set_env()
2443 client->scriptEnv = newscriptEnv; in script_set_env()
2448 client->scriptEnv[i + 1] = NULL; in script_set_env()
2451 client->scriptEnv[i] = malloc(strlen(prefix) + strlen(name) + 1 + in script_set_env()
2453 if (client->scriptEnv[i] == NULL) in script_set_env()
2455 snprintf(client->scriptEnv[i], strlen(prefix) + strlen(name) + in script_set_env()
2464 for (i = 0; client->scriptEnv[i]; i++) { in script_flush_env()
2465 free(client->scriptEnv[i]); in script_flush_env()
2466 client->scriptEnv[i] = NULL; in script_flush_env()