Name: sudo
# please see docs/UPGRADE.md for important changes each time updating sudo
Version: 1.9.11p1
-Release: 1
+Release: 2
Epoch: 1
License: BSD
Group: Applications/System
Patch0: %{name}-env.patch
Patch1: config.patch
Patch2: %{name}-sh.patch
+Patch3: x32.patch
URL: http://www.sudo.ws/sudo/
%{?with_audit:BuildRequires: audit-libs-devel}
BuildRequires: autoconf >= 2.53
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
! [ -f m4/ax_sys_weak_alias.m4 ] # provide own copy only until it is there
cp %{_aclocaldir}/ax_sys_weak_alias.m4 m4
--- /dev/null
+--- sudo-1.9.11p1/src/exec_ptrace.c~ 2022-06-06 16:42:01.000000000 +0200
++++ sudo-1.9.11p1/src/exec_ptrace.c 2022-06-11 21:36:12.498210857 +0200
+@@ -1035,14 +1035,16 @@
+ switch (syscallno) {
+ # ifdef X32_execve
+ case X32_execve:
+-# endif
++# else
+ case __NR_execve:
++# endif
+ /* Handled below. */
+ break;
+ # ifdef X32_execveat
+ case X32_execveat:
+-# endif
++# else
+ case __NR_execveat:
++# endif
+ /* We don't currently check execveat(2). */
+ debug_return_bool(true);
+ break;