cmake: Fix HAVE_SETRESUID and HAVE_SETRESGID.
authorAndreas Schneider <asn@samba.org>
Thu, 19 Dec 2013 07:46:45 +0000 (08:46 +0100)
committerAndreas Schneider <asn@samba.org>
Thu, 19 Dec 2013 07:46:45 +0000 (08:46 +0100)
ConfigureChecks.cmake
tests/testsuite.c

index fe0623ec4d20f1ebc540c69e97d4a08cfa1a0087..77a701fbad3a27c7f6a3f82af71ac3a7c80a6cb7 100644 (file)
@@ -60,11 +60,11 @@ check_function_exists(snprintf HAVE_SNPRINTF)
 
 check_function_exists(seteuid HAVE_SETEUID)
 check_function_exists(setreuid HAVE_SETREUID)
-check_function_exists(setreuid HAVE_SETRESUID)
+check_function_exists(setresuid HAVE_SETRESUID)
 
 check_function_exists(setegid HAVE_SETEGID)
 check_function_exists(setregid HAVE_SETREGID)
-check_function_exists(setregid HAVE_SETRESGID)
+check_function_exists(setresgid HAVE_SETRESGID)
 
 check_function_exists(getgroups HAVE_GETGROUPS)
 check_function_exists(setgroups HAVE_SETGROUPS)
index 412b50f3fe45281bf7bcdcb9451b1f79f908dce8..6fa8d74c2a9a1ae5ab1ef510cd8b7c872276cb75 100644 (file)
@@ -323,7 +323,7 @@ int main(void) {
 #ifdef HAVE_SETREUID
                unit_test(test_uwrap_setreuid),
 #endif
-#ifdef HAVE_SETREUID
+#ifdef HAVE_SETRESUID
                unit_test(test_uwrap_setresuid),
 #endif
                unit_test(test_uwrap_setuid),