]> git.pld-linux.org Git - packages/db5.3.git/blobdiff - db-5.3.28-cwd-db_config.patch
- rel 4; fix CVE-2017-10140
[packages/db5.3.git] / db-5.3.28-cwd-db_config.patch
diff --git a/db-5.3.28-cwd-db_config.patch b/db-5.3.28-cwd-db_config.patch
new file mode 100644 (file)
index 0000000..652e962
--- /dev/null
@@ -0,0 +1,11 @@
+--- db-5.3.28/src/env/env_open.c.old   2017-06-26 10:32:11.011419981 +0200
++++ db-5.3.28/src/env/env_open.c       2017-06-26 10:32:46.893721233 +0200
+@@ -473,7 +473,7 @@
+       env->db_mode = mode == 0 ? DB_MODE_660 : mode;
+       /* Read the DB_CONFIG file. */
+-      if ((ret = __env_read_db_config(env)) != 0)
++      if (env->db_home != NULL && (ret = __env_read_db_config(env)) != 0)
+               return (ret);
+       /*
This page took 0.024874 seconds and 4 git commands to generate.