Subject: A bug in MAKEDEV
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Brett Lymn <blymn@mulga.awadi.com.AU>
List: netbsd-bugs
Date: 12/08/1993 12:18:28
I got caught by a bug in MAKEDEV when I was trying to make a dev entry
for my second serial port. I tried to use:
MAKEDEV tty01
This would remake the tty00/com0 devices instead. Looking at the
script (and what I finally did) was to use:
MAKEDEV com01
Which is still wrong because this makes /dev/tty001 instead of
/dev/tty01 :-( but it did actually make the device this time. The
problem derives from the use of basename in the com*|tty* case, it
only caters for the com* variant. Has this been fixed?
--
Brett Lymn, Computer Systems Administrator, AWA Defence Industries
===============================================================================
"Where a calculator on the ENIAC is equipped with 18,000 vaccuum tubes
and weighs 30 tons, computers in the future may have only 1,000 vaccuum
tubes and perhaps weigh 1 1/2 tons."
-- Popular Mechanics, March 1949
------------------------------------------------------------------------------