Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2002 11:08:16 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 8389 for review
Message-ID:  <200203251908.g2PJ8Gh79737@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=8389

Change 8389 by jhb@jhb_laptop on 2002/03/25 11:07:48

	Bah, use suser() instead of suser_cred().

Affected files ...

... //depot/projects/smpng/sys/kern/tty_pty.c#12 edit

Differences ...

==== //depot/projects/smpng/sys/kern/tty_pty.c#12 (text+ko) ====

@@ -187,7 +187,7 @@
 		tp->t_lflag = TTYDEF_LFLAG;
 		tp->t_cflag = TTYDEF_CFLAG;
 		tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
-	} else if (tp->t_state & TS_XCLUDE && suser_cred(td->td_ucred, 0)) {
+	} else if (tp->t_state & TS_XCLUDE && suser(td, 0)) {
 		return (EBUSY);
 	} else if (pti->pt_prison != td->td_ucred->cr_prison) {
 		return (EBUSY);

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?200203251908.g2PJ8Gh79737>