]> git.pld-linux.org Git - packages/cyrus-sasl.git/blob - cyrus-sasl-unchecked_env.patch
- updated patches
[packages/cyrus-sasl.git] / cyrus-sasl-unchecked_env.patch
1 --- cyrus-sasl-1.5.27/lib/common.c~     Thu Oct 14 19:42:38 2004
2 +++ cyrus-sasl-1.5.27/lib/common.c      Thu Oct 14 19:44:57 2004
3 @@ -682,7 +682,9 @@
4  
5    if (! path_dest)
6      return SASL_BADPARAM;
7 -  path = getenv(SASL_PATH_ENV_VAR);
8 +  /* Honor external variable only in a safe environment */
9 +  if (getuid() == geteuid() && getgid() == getegid())
10 +         *path = getenv(SASL_PATH_ENV_VAR);
11    if (! path)
12      path = PLUGINDIR;
13    return _sasl_strdup(path, path_dest, NULL);
This page took 0.081545 seconds and 4 git commands to generate.