summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-10-08 10:47:57 +0200
committerAndreas Schneider <asn@samba.org>2011-10-27 13:32:00 +0200
commitc7fbcf9b9834e5078218e2e7a9ba5a62a87fd45b (patch)
tree5ea73a90562fe2d57c568fa411f655b007565988
parent72c95baa4b27aad59b16807bac6fae6eba0d8c4d (diff)
downloadsamba-c7fbcf9b9834e5078218e2e7a9ba5a62a87fd45b.tar.gz
samba-c7fbcf9b9834e5078218e2e7a9ba5a62a87fd45b.tar.bz2
samba-c7fbcf9b9834e5078218e2e7a9ba5a62a87fd45b.zip
replace: Add checks for setreuid and setregid.
-rw-r--r--lib/replace/libreplace.m43
-rw-r--r--lib/replace/wscript4
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4
index bc2993ad07..ca0c6846ab 100644
--- a/lib/replace/libreplace.m4
+++ b/lib/replace/libreplace.m4
@@ -115,7 +115,8 @@ AC_CHECK_HEADERS(sys/mount.h mntent.h)
AC_CHECK_HEADERS(stropts.h)
AC_CHECK_HEADERS(unix.h)
-AC_CHECK_FUNCS(seteuid setresuid setegid setresgid chroot bzero strerror strerror_r)
+AC_CHECK_FUNCS(seteuid setreuid setresuid setegid setregid setresgid)
+AC_CHECK_FUNCS(chroot bzero strerror strerror_r)
AC_CHECK_FUNCS(vsyslog setlinebuf mktime ftruncate chsize rename)
AC_CHECK_FUNCS(waitpid wait4 strlcpy strlcat initgroups memmove strdup)
AC_CHECK_FUNCS(pread pwrite strndup strcasestr strtok_r mkdtemp dup2 dprintf vdprintf)
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 6221fc4992..e4fc72b50e 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -161,8 +161,8 @@ def configure(conf):
conf.CHECK_FUNCS('shl_load shl_unload shl_findsym')
conf.CHECK_FUNCS('pipe strftime srandom random srand rand usleep setbuffer')
- conf.CHECK_FUNCS('lstat getpgrp utime utimes seteuid setresuid setegid')
- conf.CHECK_FUNCS('setresgid chroot strerror vsyslog setlinebuf mktime')
+ conf.CHECK_FUNCS('lstat getpgrp utime utimes seteuid setreuid setresuid setegid')
+ conf.CHECK_FUNCS('setregid setresgid chroot strerror vsyslog setlinebuf mktime')
conf.CHECK_FUNCS('ftruncate chsize rename waitpid wait4 strlcpy strlcat')
conf.CHECK_FUNCS('initgroups pread pwrite strndup strcasestr')
conf.CHECK_FUNCS('strtok_r mkdtemp dup2 dprintf vdprintf isatty chown lchown')