🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11818

Re: Serial Line Settings

#11818
From: Guy Harris
Date: Fri, 31 Mar 1989 00:46
45 lines
2584 bytes
>yup - you can set the flag, and getty will proceede accordingly.  you type
>your login, "/bin/login" runs, and ... guess what ... looks to me like
>"/bin/login" sets back to 7/odd ... (Sun 4/260 SunOS 4.0.1)

Bug # 1012922, as described in the Customer Distributed Bugs list in the
December 1988 Software Technical Bulletin.  As stated there:

	Synopsis: "login" blindly resets PASS8 mode

	Description:
	   "getty" supports a "p8" capability in "/etc/gettytab", which
	   is intended  to permit you to attach terminals in 8 data
	   bits, no parity bit, mode (or to run the Sun workstation
	   console in 8-bit mode).  Unfortunately, "login" turns PASS8
	   mode off, which undoes the work.  "getty" does to set PASS8
	   mode (*sic*); this means that some output from "login" will
	   be scrambled on terminals in 8 data bits, no parity bit, mode
	   even if you do not put "stty pass8" in your ".profile" or
	   ".login" file.

	Workaround:
	   Make sure you set "pass8" in your ".profile" or ".login", and
	   ignore the garbage that appears.

I think the last sentence in "Description:" should read "even if you *do*
put 'stty pass8' in your '.profile' or '.login' file."; I don't think I
said it that way when I originally submitted that bug report.  I don't
know what the scrambled sentence flagged with (*sic*) was supposed to
be....

"login" came that way from Berkeley; it can be considered a bug there, as
well, since the "f0", "f1", and "f2" flags include the local mode bits in
the upper 16 bits, and there exist other flags such as "dx" that affect
those mode bits, so "getty" *does* let you dink with those flag bits. 

The fix is to:

	1) modify "login" to leave PASS8 mode alone;

	2) modify clients of "login" other than "getty" (e.g.,
	   "in.rlogind" and "in.telnetd") to forcibly set or clear
	   PASS8, since "login" will no longer ensure that it has a
	   fixed setting).

This fix should be in 4.1, and may be in some dot-dot release as well.
Technical Details
Message-ID: <1187@auspex.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!rice!sun-spots-request
References: <59@gaia.oz> <FAULKNER.89Mar8093730@jmullins.harvard.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!rice!sun-spots-request
From: auspex!guy@uunet.uu.net (Guy Harris)
Newsgroups: comp.sys.sun
Subject: Re: Serial Line Settings
Keywords: SunOS
Message-ID: <1187@auspex.UUCP>
Date: 31 Mar 89 00:46:31 GMT
References: <59@gaia.oz> <FAULKNER.89Mar8093730@jmullins.harvard.edu>
Sender: usenet@rice.edu
Organization: Auspex Systems, Santa Clara
Lines: 45
Approved: Sun-Spots@rice.edu
Original-Date: 20 Mar 89 22:55:55 GMT
X-Sun-Spots-Digest: Volume 7, Issue 217, message 7 of 11