Skip to content

Commit

Permalink
Do not use HAVE_issetugid
Browse files Browse the repository at this point in the history
macOS does not have secure_getenv(3) but it has issetugid(2).
  • Loading branch information
LudovicRousseau committed May 5, 2024
1 parent dc318d6 commit f29361e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sys_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,8 @@ INTERNAL const char * SYS_GetEnv(const char *name)
#else
/* Otherwise, make sure current process is not tainted by uid or gid
* changes */
#ifdef HAVE_issetugid
if (issetugid())
return NULL;
#endif
return getenv(name);
#endif
}
Expand Down

0 comments on commit f29361e

Please sign in to comment.