summaryrefslogtreecommitdiff
path: root/sys/compat/common
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-05 16:18:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-05 16:18:39 +0000
commit965838951ec63319efe3d6acd3340bd8e44de631 (patch)
tree6dbdd602ebc67aca4d54f0965f5eba949d5ab1e2 /sys/compat/common
parent74d260749ea58c587f154bf4c0ffa1cfbac01cc9 (diff)
ss_sp is correct, ss_base is not. noticed by agc@sde.uts.amdahl.com; netbsd pr#1784
Diffstat (limited to 'sys/compat/common')
-rw-r--r--sys/compat/common/kern_sig_43.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/common/kern_sig_43.c b/sys/compat/common/kern_sig_43.c
index f11be5dcd89..9703ea59a5c 100644
--- a/sys/compat/common/kern_sig_43.c
+++ b/sys/compat/common/kern_sig_43.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig_43.c,v 1.5 1995/10/07 06:26:29 mycroft Exp $ */
+/* $NetBSD: kern_sig_43.c,v 1.6 1996/01/04 22:23:01 jtc Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -119,7 +119,7 @@ compat_43_sys_sigstack(p, v, retval)
int error = 0;
psp = p->p_sigacts;
- ss.ss_sp = psp->ps_sigstk.ss_base;
+ ss.ss_sp = psp->ps_sigstk.ss_sp;
ss.ss_onstack = psp->ps_sigstk.ss_flags & SS_ONSTACK;
if (SCARG(uap, oss) && (error = copyout((caddr_t)&ss,
(caddr_t)SCARG(uap, oss), sizeof (struct sigstack))))
@@ -130,7 +130,7 @@ compat_43_sys_sigstack(p, v, retval)
sizeof (ss)))
return (error);
psp->ps_flags |= SAS_ALTSTACK;
- psp->ps_sigstk.ss_base = ss.ss_sp;
+ psp->ps_sigstk.ss_sp = ss.ss_sp;
psp->ps_sigstk.ss_size = 0;
psp->ps_sigstk.ss_flags |= ss.ss_onstack & SS_ONSTACK;
return (0);