diff options
Diffstat (limited to 'crypto/compat/issetugid_osx.c')
-rw-r--r-- | crypto/compat/issetugid_osx.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/compat/issetugid_osx.c b/crypto/compat/issetugid_osx.c new file mode 100644 index 0000000..ad6cb58 --- /dev/null +++ b/crypto/compat/issetugid_osx.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * issetugid implementation for OS X | ||
3 | * Public domain | ||
4 | */ | ||
5 | |||
6 | #include <unistd.h> | ||
7 | |||
8 | /* | ||
9 | * OS X has issetugid, but it is not fork-safe as of version 10.10. | ||
10 | * See this Solaris report for test code that fails similarly: | ||
11 | * http://mcarpenter.org/blog/2013/01/15/solaris-issetugid%282%29-bug | ||
12 | */ | ||
13 | int issetugid(void) | ||
14 | { | ||
15 | return 1; | ||
16 | } | ||