]> git.pld-linux.org Git - packages/cyrus-sasl.git/commitdiff
- fixed version, adjusted for configdir patch
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 19 Oct 2004 10:47:49 +0000 (10:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cyrus-sasl-unchecked_env.patch -> 1.1.2.1

cyrus-sasl-unchecked_env.patch

index b6571f08797a9039fb1db58459d4c6f5f4e468b3..0627b65bf0ec43818d866742869e82bcd2c39120 100644 (file)
@@ -1,13 +1,34 @@
---- cyrus-sasl-1.5.27/lib/common.c~    Thu Oct 14 19:42:38 2004
-+++ cyrus-sasl-1.5.27/lib/common.c     Thu Oct 14 19:44:57 2004
-@@ -682,7 +682,9 @@
+--- cyrus-sasl-1.5.27/lib/common.c.orig        2004-10-19 12:39:47.000000000 +0200
++++ cyrus-sasl-1.5.27/lib/common.c     2004-10-19 12:43:35.000000000 +0200
+@@ -678,11 +678,13 @@
+ _sasl_getpath(void *context __attribute__((unused)),
+             char ** path_dest)
+ {
+-  char *path;
++  char *path = NULL;
  
    if (! path_dest)
      return SASL_BADPARAM;
 -  path = getenv(SASL_PATH_ENV_VAR);
 +  /* Honor external variable only in a safe environment */
 +  if (getuid() == geteuid() && getgid() == getegid())
-+        *path = getenv(SASL_PATH_ENV_VAR);
++    path = getenv(SASL_PATH_ENV_VAR);
    if (! path)
      path = PLUGINDIR;
    return _sasl_strdup(path, path_dest, NULL);
+@@ -692,11 +694,13 @@
+ _sasl_getconfpath(void *context __attribute__((unused)),
+             char ** path_dest)
+ {
+-  char *path;
++  char *path = NULL;
+   if (! path_dest)
+     return SASL_BADPARAM;
+-  path = getenv(SASL_CONF_PATH_ENV_VAR);
++  /* Honor external variable only in a safe environment */
++  if (getuid() == geteuid() && getgid() == getegid())
++    path = getenv(SASL_CONF_PATH_ENV_VAR);
+   if (! path)
+     path = CONFIGDIR;
+   return _sasl_strdup(path, path_dest, NULL);
This page took 0.048878 seconds and 4 git commands to generate.