File libdb-4_8-DB_CONFIG.patch of Package libdb-4_8.5081

Index: db-4.8.30/env/env_open.c
===================================================================
--- db-4.8.30.orig/env/env_open.c
+++ db-4.8.30/env/env_open.c
@@ -374,7 +374,7 @@ __env_config(dbenv, db_home, flags, mode
 	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);
 
 	/*
openSUSE Build Service is sponsored by