diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2006-08-18 03:06:19 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2006-08-18 03:06:19 +0000 |
commit | deb0c8da9478dce020685e04ec5ec1b19878be76 (patch) | |
tree | 779cadde25b30591be31e5370764006fa861353c /usr.bin/tip/tip.c | |
parent | 5b6abf1c1a48d2d8259c2ce49d894e29d5d94efb (diff) |
tip/cu always set "dc" because the code was reading from the wrong value
in the array. Point it at the correct chunk of memory. For now, also
preserve the old ":dc:" is always set behavior.
ok deraadt
Diffstat (limited to 'usr.bin/tip/tip.c')
-rw-r--r-- | usr.bin/tip/tip.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tip/tip.c b/usr.bin/tip/tip.c index 2a9d7c68fc5..f8eddf59120 100644 --- a/usr.bin/tip/tip.c +++ b/usr.bin/tip/tip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tip.c,v 1.29 2006/06/06 23:24:52 deraadt Exp $ */ +/* $OpenBSD: tip.c,v 1.30 2006/08/18 03:06:18 jason 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.29 2006/06/06 23:24:52 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: tip.c,v 1.30 2006/08/18 03:06:18 jason 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(); |