*BSD News Article 56792


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!chi-news.cic.net!news.math.psu.edu!news.cac.psu.edu!newsserver.jvnc.net!newsserver2.jvnc.net!howland.reston.ans.net!ix.netcom.com!netcom.com!dhawk
From: dhawk@netcom.com (David H)
Subject: ^J/^M Problem -- Anyone seen this?
Message-ID: <dhawkDJ59Ft.A0C@netcom.com>
Organization: Decline to State
Date: Wed, 6 Dec 1995 02:55:04 GMT
Lines: 17
Sender: dhawk@netcom2.netcom.com

Background: have a conferencing system running on FreeBSD 2.0.5.
A user wrote a 'newuser' program that allows new users to sign up.
He used the 'getpasswd' (sp?) system call to get a password from
them in raw mode and unechoed. When I run his program (telnet 
in from SunOS 4.1.3) it won't take a password without a ^J
(control-J). Then I realized another home-written program
was having the same problem -- it won't take a line of input
unless it's terminated with ^J
(This was code that was working under Linux.)

Anyone seen this? Something I can fix in 2.0.5? Fixed in 2.1?

later, david
--
David Hawkins    dhawk@netcom.com
As long as one feels that he is the doer, he cannot escape from the
wheel of births. -- Buddha