Fix compilation error on systems with no compat arch.
Currently only affects i386.
This commit is contained in:
@@ -288,10 +288,13 @@ ptrace_setregs(int pid, struct sudo_ptrace_regs *regs)
|
|||||||
struct iovec iov;
|
struct iovec iov;
|
||||||
debug_decl(ptrace_setregs, SUDO_DEBUG_EXEC);
|
debug_decl(ptrace_setregs, SUDO_DEBUG_EXEC);
|
||||||
|
|
||||||
|
# ifdef SECCOMP_AUDIT_ARCH_COMPAT
|
||||||
if (regs->compat) {
|
if (regs->compat) {
|
||||||
iov.iov_base = ®s->u.compat;
|
iov.iov_base = ®s->u.compat;
|
||||||
iov.iov_len = sizeof(regs->u.compat);
|
iov.iov_len = sizeof(regs->u.compat);
|
||||||
} else {
|
} else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
iov.iov_base = ®s->u.native;
|
iov.iov_base = ®s->u.native;
|
||||||
iov.iov_len = sizeof(regs->u.native);
|
iov.iov_len = sizeof(regs->u.native);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user