1
1

* slcommon.c (_pSLsecure_issetugid): Remove dependency on glibc private

function __libc_enable_secure().
Этот коммит содержится в:
Leonard den Ottolander 2005-11-15 20:51:31 +00:00
родитель 12e531832f
Коммит f235c1b358
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2005-11-15 Leonard den Ottolander <leonard den ottolander nl>
* slcommon.c (_pSLsecure_issetugid): Remove dependency on glibc
private function __libc_enable_secure().
2005-11-10 Leonard den Ottolander <leonard den ottolander nl>
* *: Upgrade slang to 2.0.5.

Просмотреть файл

@ -191,7 +191,7 @@ char *SLcalloc (unsigned int nelems, unsigned int len)
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)