60 std::list<std::string> lst_envs;
61 lst_envs.push_back(
"XROOT_PROXY");
62 lst_envs.push_back(
"xroot_proxy");
63 lst_envs.push_back(
"XROOT_PROXY_EXCL_DOMAINS");
64 lst_envs.push_back(
"xroot_proxy_excl_domains");
66 for (std::list<std::string>::iterator it_env = lst_envs.begin();
67 it_env != lst_envs.end(); ++it_env) {
68 std::map<std::string, std::string>::const_iterator it_map =
69 config->find(*it_env);
71 if (it_map != config->end() && !it_map->second.empty()) {
72 if (setenv(it_map->first.c_str(), it_map->second.c_str(), 0)) {
73 log->
Error(1,
"Failed to set env variable %s from the configuration"
74 " file", it_map->first.c_str());