diff options
author | Juergen Daubert <jue@jue.li> | 2016-08-06 13:33:32 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2016-08-06 13:33:32 +0200 |
commit | 914e07e0f35c9cf525feb903f687db8b6e30f5e3 (patch) | |
tree | 6fc90ae725921a71354ec2c5227d27d8a0cab3dc /fakeroot | |
parent | 3046cab62bf472074dda61b881a8e8c3ec1259f2 (diff) | |
download | opt-914e07e0f35c9cf525feb903f687db8b6e30f5e3.tar.gz opt-914e07e0f35c9cf525feb903f687db8b6e30f5e3.tar.xz |
fakeroot: forgot to add patch
Diffstat (limited to 'fakeroot')
-rw-r--r-- | fakeroot/silence-dlerror.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fakeroot/silence-dlerror.patch b/fakeroot/silence-dlerror.patch new file mode 100644 index 000000000..a4472d8f7 --- /dev/null +++ b/fakeroot/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 */ + } + } + |