slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] slcommon.c and __libc_enable_secure


Hi Pavel,

On Tue, 2005-11-15 at 15:41 -0500, Pavel Roskin wrote:
> Actually, the problem can be easily reproduced without mc and any
> embedding of S-Lang.

I expected that ;) . Fixed it for mc with the attached patch, which just
disables the dependency on that private function. Don't let the name
fool you, it works for plain slang as well.

Leonard.

diff -up mc/slang/slcommon.c.000 mc/slang/slcommon.c
--- mc/slang/slcommon.c.000	2005-10-17 08:00:18.000000000 +0200
+++ mc/slang/slcommon.c	2005-11-15 21:32:13.000000000 +0100
@@ -191,7 +191,7 @@ char *SLcalloc (unsigned int nelems, uns
    return p;
 }
 
-#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2)
+#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2) && 0
 extern int __libc_enable_secure;
 # define HAVE___LIBC_ENABLE_SECURE 1
 #endif
@@ -201,7 +201,7 @@ int _pSLsecure_issetugid (void)
 #ifdef HAVE_ISSETUGID
    return (1 == issetugid ());
 #else
-# ifdef HAVE___LIBC_ENABLE_SECURE
+# if defined HAVE___LIBC_ENABLE_SECURE && 0
    return __libc_enable_secure;
 # else
 #  if defined(HAVE_GETUID) && defined(HAVE_GETEUID) && defined(HAVE_GETGID) && defined(HAVE_GETEUID)
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html

[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]