Swap #if blocks in uid.c so target platform gets checked before host
This avoids the case where a UEFI build on FreeBSD tries to call the system issetugid function instead of returning 0 as it should do. CLA: trivial Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from #9158)
This commit is contained in:
parent
2be8c56a39
commit
e24bdcde5a
1 changed files with 8 additions and 8 deletions
16
crypto/uid.c
16
crypto/uid.c
|
@ -10,7 +10,14 @@
|
|||
#include <openssl/crypto.h>
|
||||
#include <openssl/opensslconf.h>
|
||||
|
||||
#if defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2) || defined(__DragonFly__)
|
||||
#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI)
|
||||
|
||||
int OPENSSL_issetugid(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#elif defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2) || defined(__DragonFly__)
|
||||
|
||||
# include OPENSSL_UNISTD
|
||||
|
||||
|
@ -19,13 +26,6 @@ int OPENSSL_issetugid(void)
|
|||
return issetugid();
|
||||
}
|
||||
|
||||
#elif defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI)
|
||||
|
||||
int OPENSSL_issetugid(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
# include OPENSSL_UNISTD
|
||||
|
|
Loading…
Reference in a new issue