Skip to content

Commit

Permalink
Re-enable checks for initgroups() and unsetenv()
Browse files Browse the repository at this point in the history
7b7c13c accidentally removed
configure-time checks for initgroups() and unsetenv() availability,
essentially generating dead code due to HAVE_* checks and introducing
issues with dropping permissions. This patch simply restores those
checks.
  • Loading branch information
shahn committed Mar 30, 2014
1 parent 3e7576f commit ad800d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ AC_FUNC_WAIT3
# Don't add functions to this list that are in either C89 or in
# both POSIX.1-2001 and C99. Just let the compile fail instead.
# Also, obviously, don't add functions that aren't used in the code.
AC_CHECK_FUNCS([dup2 floor ftruncate munmap pow putenv realpath \
regcomp select setenv strncasecmp strrchr tzset])
AC_CHECK_FUNCS([dup2 floor ftruncate initgroups munmap pow putenv realpath \
regcomp select setenv strncasecmp strrchr tzset unsetenv])

# Determine the system init.d directory
AC_ARG_WITH([initdir],
Expand Down

0 comments on commit ad800d8

Please sign in to comment.