The Samba-Bugzilla – Attachment 17636 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 uid_wrapper)
patch-uid_wrapper.patch (text/plain), 573 bytes, created by
Samuel Thibault
on 2022-11-08 00:50:23 UTC
(
hide
)
Description:
proposed fix (for uid_wrapper)
Filename:
MIME Type:
Creator:
Samuel Thibault
Created:
2022-11-08 00:50:23 UTC
Size:
573 bytes
patch
obsolete
>uwrap: 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/uid_wrapper.c b/src/uid_wrapper.c >index f04642a..dd87da4 100644 >--- a/src/uid_wrapper.c >+++ b/src/uid_wrapper.c >@@ -2453,7 +2453,11 @@ void uwrap_destructor(void) > } > > >- if (uwrap.libc.handle != NULL) { >+ if (uwrap.libc.handle != NULL >+#ifdef RTLD_NEXT >+ && uwrap.libc.handle != RTLD_NEXT >+#endif >+ ) { > dlclose(uwrap.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