blob: a4472d8f7c7bf83440486760236290e937696d5b (
plain)
1 diff --git a/libfakeroot.c b/libfakeroot.c
2 index f867758..7ef6e47 100644
3 --- a/libfakeroot.c
4 +++ b/libfakeroot.c
5 @@ -256,10 +256,12 @@ void load_library_symbols(void){
6 /* clear dlerror() just in case dlsym() legitimately returns NULL */
7 msg = dlerror();
8 *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
9 +#ifdef LIBFAKEROOT_DEBUGGING
10 if ( (msg = dlerror()) != NULL){
11 fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
12 /* abort ();*/
13 }
14 +#endif /* LIBFAKEROOT_DEBUGGING */
15 }
16 }
17
|