disable setuid configure checks
authorMichael Tokarev <mjt@tls.msk.ru>
Fri, 8 Apr 2022 08:50:21 +0000 (11:50 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 17 Apr 2026 08:02:47 +0000 (11:02 +0300)
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

index 73d1314b17ee80aa812581135ac952644d2f8cd0..beb0ee68d1649753fd96387b487284b8dc145a0d 100644 (file)
@@ -559,7 +559,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");