summaryrefslogtreecommitdiffstats
path: root/main/fakeroot/fakeroot-hide-dlsym-errors.patch
blob: aeeb347da6785a8a0f08111d083c4920e96f7166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
it's normal that the acl_* symbols are not found if the application
is not linked against -lacl. these errors harmless, but mighty
annoying.

--- fakeroot-1.20/libfakeroot.c.orig	2014-03-07 11:20:26.120532847 +0200
+++ fakeroot-1.20/libfakeroot.c	2014-03-07 11:21:26.486872482 +0200
@@ -258,10 +258,12 @@
  /* clear dlerror() just in case dlsym() legitimately returns NULL */
     msg = dlerror();
     *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
-    if ( (msg = dlerror()) != NULL){
+#ifdef LIBFAKEROOT_DEBUGGING
+    if ( fakeroot_debug && (msg = dlerror()) != NULL) {
       fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
 /*    abort ();*/
     }
+#endif
   }
 }