summarylogtreecommitdiffstats
path: root/silence-dlerror.patch
diff options
context:
space:
mode:
Diffstat (limited to 'silence-dlerror.patch')
-rw-r--r--silence-dlerror.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/silence-dlerror.patch b/silence-dlerror.patch
new file mode 100644
index 000000000000..a4472d8f7c7b
--- /dev/null
+++ b/silence-dlerror.patch
@@ -0,0 +1,17 @@
+diff --git a/libfakeroot.c b/libfakeroot.c
+index f867758..7ef6e47 100644
+--- a/libfakeroot.c
++++ b/libfakeroot.c
+@@ -256,10 +256,12 @@ void load_library_symbols(void){
+ /* clear dlerror() just in case dlsym() legitimately returns NULL */
+ msg = dlerror();
+ *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
++#ifdef LIBFAKEROOT_DEBUGGING
+ if ( (msg = dlerror()) != NULL){
+ fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
+ /* abort ();*/
+ }
++#endif /* LIBFAKEROOT_DEBUGGING */
+ }
+ }
+