From 4b25038ca901c54f4c036709a8ac79c3b8355ebe Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Mon, 27 Nov 2006 23:19:42 +0000 Subject: Back out revision 1.31, restoring the ":dc: is always set" behaviour. Fixes hangs seen with uplcom(4) and serial console. testing pedro jolan ok deraadt --- usr.bin/tip/tip.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/tip/tip.c b/usr.bin/tip/tip.c index 4dd693b9637..c04eb9a70ef 100644 --- a/usr.bin/tip/tip.c +++ b/usr.bin/tip/tip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tip.c,v 1.31 2006/09/22 14:44:27 jason Exp $ */ +/* $OpenBSD: tip.c,v 1.32 2006/11/27 23:19:41 mcbride Exp $ */ /* $NetBSD: tip.c,v 1.13 1997/04/20 00:03:05 mellon Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: tip.c,v 1.31 2006/09/22 14:44:27 jason Exp $"; +static const char rcsid[] = "$OpenBSD: tip.c,v 1.32 2006/11/27 23:19:41 mcbride Exp $"; #endif /* not lint */ /* @@ -65,6 +65,9 @@ main(int argc, char *argv[]) char *sys = NOSTR, sbuf[12], *p; int i; + /* XXX preserve previous braindamaged behavior */ + setboolean(value(DC), TRUE); + gid = getgid(); egid = getegid(); uid = getuid(); -- cgit v1.2.3