Bläddra i källkod

Ronald Wahl writes:
I noticed that dlclose() does not work since libraries loaded with
dlopen are not marked as "loaded_file". This breaks apache with dynamic
modules. I append a small fix against uClibc-0.9.16.

Eric Andersen 22 år sedan
förälder
incheckning
fad967c768
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1 0
      ldso/libdl/dlib.c
  2. 1 0
      ldso/libdl/libdl.c

+ 1 - 0
ldso/libdl/dlib.c

@@ -149,6 +149,7 @@ void *_dlopen(const char *libname, int flag)
 #endif
 		return NULL;
 	}
+	tpnt->libtype = loaded_file;
 
 	dyn_chain = rpnt = (struct dyn_elf *) malloc(sizeof(struct dyn_elf));
 	_dl_memset(rpnt, 0, sizeof(*rpnt));

+ 1 - 0
ldso/libdl/libdl.c

@@ -149,6 +149,7 @@ void *_dlopen(const char *libname, int flag)
 #endif
 		return NULL;
 	}
+	tpnt->libtype = loaded_file;
 
 	dyn_chain = rpnt = (struct dyn_elf *) malloc(sizeof(struct dyn_elf));
 	_dl_memset(rpnt, 0, sizeof(*rpnt));