Swap #if blocks in uid.c so target platform gets checked before host
authorRebecca Cran <rebecca@bluestop.org>
Thu, 13 Jun 2019 22:09:47 +0000 (16:09 -0600)
committerPauli <paul.dale@oracle.com>
Tue, 18 Jun 2019 02:53:27 +0000 (12:53 +1000)
commit10bf5068190ab25324648dd4a0becd4bd46ecc37
tree8c735369b6178047a85cd35a2bd42ea9ec066d31
parentea5d4b89cc6f0273d5085f5902b68fc4aa32cb80
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 https://github.com/openssl/openssl/pull/9158)
crypto/uid.c