mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* slcommon.c (_pSLsecure_issetugid): Remove dependency on glibc private
function __libc_enable_secure().
This commit is contained in:
parent
12e531832f
commit
f235c1b358
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user