From ea94c5c93153eb5cc80206629fce8306d9a16d52 Mon Sep 17 00:00:00 2001 From: Michael Tokarev Date: Fri, 8 Apr 2022 11:50:21 +0300 Subject: [PATCH] disable setuid configure checks Forwarded: not-needed For some strange reason, when running reprotest test on salsa-ci, which apparently is running as root, - on the *second* build only the configure fails (after successfully built package the first time). The configure test tries to change gid and verifies it actually changed (not that the syscall exist), - and that fails. Since it is extremely uncommon to configure the build process as root, salsa-ci test environment details are quite deep down the line, and we know the syscall actually works, just disable the probe, pretending we are not root. For upstream, this probably should be done by removing a *lot* of configure-time checks which are useless these days. Gbp-Pq: Name disable-setuid-confchecks.patch --- source3/lib/util_sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c index 2dab2855..91b728b6 100644 --- a/source3/lib/util_sec.c +++ b/source3/lib/util_sec.c @@ -558,7 +558,7 @@ static int have_syscall(void) int main(void) { - if (getuid() != 0) { + if (1 || getuid() != 0) { #if (defined(AIX) && defined(USE_SETREUID)) /* setreuid is badly broken on AIX 4.1, we avoid it completely */ fprintf(stderr,"avoiding possibly broken setreuid\n"); -- 2.30.2