1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Fix a bug in MAKEDEV -- when creating /dev/usb, the code was using

whatever random value was already in $unit. It happened to work
because the variable is often unset, but this is not always the
case e.g. when you call "MAKEDEV sio2 usb ..."

This affects -stable as well.

Reviewed by: n_hibma
Silence from: re
MFC after: 3 days
This commit is contained in:
Luigi Rizzo 2002-10-24 17:59:58 +00:00
parent 1f59664b68
commit 65b8577640
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105885

View File

@ -916,8 +916,8 @@ pps*)
;;
usb)
mknod usb$unit c 108 255 root:operator
chmod 0660 usb$unit
mknod usb c 108 255 root:operator
chmod 0660 usb
;;
usb*)