From: Todd C. Miller Date: Tue, 27 Nov 2012 15:29:55 +0000 (-0500) Subject: Quiet a gcc warning and add comment about needing to keep the X-Git-Tag: SUDO_1_8_7~1^2~306 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd5d0eada75964c8620a0f605bf9323836feb257;p=sudo Quiet a gcc warning and add comment about needing to keep the handle open. --- diff --git a/src/solaris.c b/src/solaris.c index 28ed6ae7b..7d0104e49 100644 --- a/src/solaris.c +++ b/src/solaris.c @@ -54,10 +54,12 @@ os_init(int argc, char *argv[], char *envp[]) { /* * Solaris 11 is unable to load the per-locale shared objects - * without this. This bug was fixed in Solaris 11 Update 1. + * without this. We must keep the handle open for it to work. + * This bug was fixed in Solaris 11 Update 1. */ void *handle = dlopen("/usr/lib/locale/common/methods_unicode.so.3", RTLD_LAZY|RTLD_GLOBAL); + (void)&handle; return os_init_common(argc, argv, envp); }