klog -pipe does not allow spaces

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Thu Jun 22 14:25:12 CEST 2000


On 06/22/00 12:56:35 +0200 Tino Schwarze 
<tino.schwarze at informatik.tu-chemnitz.de> wrote:
+-----
| Hi there,
| a friend of mine recently figured out that klog -pipe does not accept
| spaces within passwords. He hunted the problem down to the use of
| scanf() in line 654 of klog.c.
+--->8

**ick**

I'd like to shoot anyone who uses scanf() or fscanf().  It's almost always 
the wrong thing to do.

| 1. use getchar and figure out end-of-line ourself
+--->8

klog doesn't need to use raw mode, so EOL should be presented as \n.

-- 
brandon s. allbery     [os/2][linux][solaris][japh]    allbery at kf8nh.apk.net
system administrator        [WAY too many hats]          allbery at ece.cmu.edu
electrical & computer engineering                                      KF8NH
carnegie mellon university      ["better check the oblivious first" -ke6sls]





More information about the Arla-drinkers mailing list