/[path-sandbox]/trunk/src/sandbox.c
Gentoo

Diff of /trunk/src/sandbox.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 290 Revision 291
269 char *config; 269 char *config;
270 270
271 /* We check if the variable is set in the environment, and if not, we 271 /* We check if the variable is set in the environment, and if not, we
272 * get it from sandbox.conf, and if they exist, we just add them to the 272 * get it from sandbox.conf, and if they exist, we just add them to the
273 * environment if not already present. */ 273 * environment if not already present. */
274 if (NULL == getenv(env_var)) {
275 config = rc_get_cnf_entry(SANDBOX_CONF_FILE, env_var, NULL); 274 config = rc_get_cnf_entry(SANDBOX_CONF_FILE, env_var, NULL);
276 if (NULL != config) { 275 if (NULL != config) {
277 setenv(ENV_SANDBOX_VERBOSE, config, 0); 276 setenv(ENV_SANDBOX_VERBOSE, config, 0);
278 free(config); 277 free(config);
279 }
280 } 278 }
281} 279}
282 280
283int sandbox_set_env_access_var(const char *access_var) 281int sandbox_set_env_access_var(const char *access_var)
284{ 282{

Legend:
Removed from v.290  
changed lines
  Added in v.291

  ViewVC Help
Powered by ViewVC 1.1.20