This commit is contained in:
praszyk 2005-11-22 12:01:56 +00:00
parent e31d9a0a74
commit 0321ce39af
2 changed files with 42 additions and 1 deletions

38
slang-nointerlibc2.patch Normal file
View File

@ -0,0 +1,38 @@
--- slang-2.0.5/src/slcommon.c.nointerlibc 2005-10-17 08:00:18.000000000 +0200
+++ slang-2.0.5/src/slcommon.c 2005-11-21 14:26:28.000000000 +0100
@@ -191,19 +191,19 @@
return p;
}
-#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2)
-extern int __libc_enable_secure;
-# define HAVE___LIBC_ENABLE_SECURE 1
-#endif
+/* #if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2) */
+/* extern int __libc_enable_secure; */
+/* # define HAVE___LIBC_ENABLE_SECURE 1 */
+/* #endif */
int _pSLsecure_issetugid (void)
{
#ifdef HAVE_ISSETUGID
return (1 == issetugid ());
#else
-# ifdef HAVE___LIBC_ENABLE_SECURE
- return __libc_enable_secure;
-# else
+/* # ifdef HAVE___LIBC_ENABLE_SECURE */
+/* return __libc_enable_secure; */
+/* # else */
# if defined(HAVE_GETUID) && defined(HAVE_GETEUID) && defined(HAVE_GETGID) && defined(HAVE_GETEUID)
static int enable_secure;
if (enable_secure == 0)
@@ -218,7 +218,7 @@
# else
return 0;
# endif
-# endif
+/* # endif */
#endif
}

View File

@ -3,7 +3,7 @@
Summary: The shared library for the S-Lang extension language.
Name: slang
Version: 2.0.5
Release: 1
Release: 3
License: GPL
Group: System Environment/Libraries
Source: ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.0/slang-%{version}.tar.bz2
@ -85,6 +85,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_includedir}/slang
%changelog
* Mon Nov 21 2005 Petr Raszyk <praszyk@redhat.com> - 2.0.5-3
- Rebuild.
* Mon Nov 21 2005 Petr Raszyk <praszyk@redhat.com> - 2.0.5-1
- Upgrade to slang 20005.
- (#161536). slang-nointerlibc.patch