forked from mirrors/tftp-hpa-google
tftpd: Use setres*id() if available
POSIX apparently doesn't clearly specify the behavior of the saved ID when calling setre*id(). If the system has setres*id() then use it to make absolutely sure that the ID changes cannot be undone. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
99112f0206
commit
5e8d5c24b2
2 changed files with 10 additions and 4 deletions
|
@ -86,7 +86,9 @@ AC_CHECK_FUNCS(setsid)
|
|||
AC_CHECK_FUNCS(recvmsg)
|
||||
AC_CHECK_FUNCS(ftruncate)
|
||||
AC_CHECK_FUNCS(setreuid)
|
||||
AC_CHECK_FUNCS(setresuid)
|
||||
AC_CHECK_FUNCS(setregid)
|
||||
AC_CHECK_FUNCS(setresgid)
|
||||
AC_CHECK_FUNCS(initgroups)
|
||||
AC_CHECK_FUNCS(setgroups)
|
||||
AC_CHECK_FUNCS(sigaction)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue