1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

r9374: HPUX is also missing setegid()

(This used to be commit 57e6bd61395e82064c72510dcc326b11b7bdf7fd)
This commit is contained in:
Andrew Tridgell 2005-08-18 01:57:43 +00:00 committed by Gerald (Jerry) Carter
parent ec96a742f7
commit 3f260e2efe
2 changed files with 13 additions and 1 deletions

View File

@ -15,4 +15,5 @@ if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
AC_DEFINE(REPLACE_INET_NTOA,1,[Whether inet_ntoa should be replaced])
fi
AC_CHECK_FUNCS(strtoull __strtoull strtouq strtoll __strtoll strtoq seteuid setresuid)
AC_CHECK_FUNCS(strtoull __strtoull strtouq strtoll __strtoll strtoq)
AC_CHECK_FUNCS(seteuid setresuid setegid setresgid)

View File

@ -515,3 +515,14 @@ int sys_waitpid(pid_t pid,int *status,int options)
#endif
}
#endif
#ifndef HAVE_SETEGID
int setegid(gid_t egid)
{
#ifdef HAVE_SETRESGID
return setresgid(-1, egid, -1);
#else
# error "You need a setegid function"
#endif
}
#endif