NetBSD Problem Report #1325
From gnats Wed Aug 9 11:40:24 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id LAA12517 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 9 Aug 1995 11:40:23 -0400
Message-Id: <199508091531.LAA00960@protagoras.eecs.harvard.edu>
Date: Wed, 9 Aug 1995 11:31:05 -0400
From: Trevor Blackwell <tlb@protagoras.eecs.harvard.edu>
Reply-To: tlb@protagoras.eecs.harvard.edu
To: gnats-bugs@NetBSD.ORG
Subject: tip computes parity wrong for zero parity
X-Send-Pr-Version: 3.2
>Number: 1325
>Category: bin
>Synopsis: tip computes parity wrong for zero parity
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 09 11:50:04 +0000 1995
>Closed-Date: Thu Aug 10 20:10:47 +0000 1995
>Last-Modified: Fri Aug 11 00:14:52 +0000 1995
>Originator: Trevor Blackwell
>Release: Aug 4
>Organization:
Harvard
--
Trevor Blackwell tlb@eecs.harvard.edu (617) 495-8912
>Environment:
all
System: NetBSD protagoras 1.0A NetBSD 1.0A (PROTAGORAS) #13: Mon Jun 5 15:17:44 EDT 1995 tlb@protagoras:/usr/src/sys/arch/i386/compile/PROTAGORAS i386
>Description:
Tip works incorrectly when parity is set to none - it would apply odd
parity. This made it not be able to communicate with most consoles.
>How-To-Repeat:
Run tip with parity=zero (or pa=zero in remote(5))
Transmission will always be even parity
>Fix:
The error was a misunderstanding of C precedence rules; here is the
fix.
*** /usr/src/usr.bin/tip/tip.c Wed Aug 9 11:05:19 1995
--- /usr/src/usr.bin/tip/tip.c-orig Wed Aug 9 11:04:56 1995
***************
*** 600,604 ****
(void) fflush(stderr);
}
for (i = 0; i < 0200; i++)
! partab[i] = (evenpartab[i] ^ flip | set) & clr;
}
--- 600,604 ----
(void) fflush(stderr);
}
for (i = 0; i < 0200; i++)
! partab[i] = evenpartab[i] ^ flip | set & clr;
}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Thu Aug 10 20:10:47 1995
State-Changed-Why:
Patch applied.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.