Date: Mon, 25 Mar 2002 13:57:50 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 8411 for review Message-ID: <200203252157.g2PLvo420487@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=8411 Change 8411 by jhb@jhb_laptop on 2002/03/25 13:57:40 Compile fixes. Affected files ... ... //depot/projects/smpng/sys/kern/kern_resource.c#15 edit ... //depot/projects/smpng/sys/kern/tty.c#13 edit Differences ... ==== //depot/projects/smpng/sys/kern/kern_resource.c#15 (text+ko) ==== @@ -258,7 +258,7 @@ if (n < PRIO_MIN) n = PRIO_MIN; if (n < chgp->p_ksegrp.kg_nice /* XXXKSE */ && - suser(td, 0)) + suser_cred(curp->p_ucred, 0)) return (EACCES); chgp->p_ksegrp.kg_nice /* XXXKSE */ = n; (void)resetpriority(&chgp->p_ksegrp); /* XXXKSE */ ==== //depot/projects/smpng/sys/kern/tty.c#13 (text+ko) ==== @@ -730,9 +730,11 @@ void *data; { register struct proc *p; + struct thread *td; int s, error; - p = curproc; /* XXX */ + td = curthread; /* XXX */ + p = td->td_proc; /* If the ioctl involves modification, hang if in the background. */ switch (cmd) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203252157.g2PLvo420487>