The Samba-Bugzilla – Attachment 17635 Details for
Bug 15228
Crashes on wrapper exit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed fix (for priv_wrapper)
patch-priv_wrapper.patch (text/plain), 621 bytes, created by
Samuel Thibault
on 2022-11-08 00:49:57 UTC
(
hide
)
Description:
proposed fix (for priv_wrapper)
Filename:
MIME Type:
Creator:
Samuel Thibault
Created:
2022-11-08 00:49:57 UTC
Size:
621 bytes
patch
obsolete
>pwrap: Avoid dclose(RTLD_NEXT) > >In case the libc was not found and RTLD_NEXT is used instead, we should not >dlclose it, otherwise mayhem happens. > >Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> > >diff --git a/src/priv_wrapper.c b/src/priv_wrapper.c >index acff955..2ca38a0 100644 >--- a/src/priv_wrapper.c >+++ b/src/priv_wrapper.c >@@ -727,7 +727,11 @@ void privwrap_constructor(void) > > void privwrap_destructor(void) > { >- if (privwrap.libc.handle != NULL) { >+ if (privwrap.libc.handle != NULL >+#ifdef RTLD_NEXT >+ && privwrap.libc.handle != RTLD_NEXT >+#endif >+ ) { > dlclose(privwrap.libc.handle); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15228
:
17632
|
17633
|
17634
| 17635 |
17636