8-bit login trouble

Guy Harris auspex!guy at uunet.uu.net
Wed Dec 5 13:00:00 AEST 1990


 >I'm trying to setup a login for 8 databits, no parity. This should
 >(according man gettytab) be possible by using the 'p8' flag in
 >/etc/gettytab.  It doesn't work very well. I get the "login:" prompt fine
 >with 8 bits, no parity, but after entering the userid, the "Password:"
 >prompt appears with 7 bits, even parity. The rest of the session is also 7
 >bits.. Could it be that getty supports 8bits but login does not?

Yup.  More precisely, "getty" was enhanced to have a "p8" flag that turns
on an 8-bit datapath, but "login" wasn't fixed to leave the 8-bit datapath
alone.

"login" was fixed to leave the 8-bit datapath alone in 4.1; for those who
have source (either to the SunOS 4.0[.x] "login", or to the 4.3BSD "login"
from which it's derived and have the 4.3BSD one running under SunOS 4.x),
the fix is to:

1) have "login", instead of clearing the entire "local flags word"
   including the PASS8 bit, leave the state of the PASS8 bit alone, and clear
   all the other bits;

2) have programs other than "getty" that use "login" (e.g., the TELNET and
   "rlogin" daemons) set up the PASS8 bit in the "local flags word"
   appropriately.

For those who have only binaries, well, sorry, but if you have lots of
courage, you can try to patch the binary to do the same....



More information about the Comp.sys.sun mailing list