summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-10-24 17:59:58 +0000
committerluigi <luigi@FreeBSD.org>2002-10-24 17:59:58 +0000
commitd40d2f4e741a87b5f72d543254815829baf865bc (patch)
tree0e6fcd1253a6af2aa531ad641e3baf2b04529f8a /etc
parent8ac0d1e75694f903d81d920de27c255cdb6c8127 (diff)
downloadFreeBSD-src-d40d2f4e741a87b5f72d543254815829baf865bc.zip
FreeBSD-src-d40d2f4e741a87b5f72d543254815829baf865bc.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/MAKEDEV4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index fa9dd8c..cdd23dc 100644
--- a/etc/MAKEDEV
+++ b/etc/MAKEDEV
@@ -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*)
OpenPOWER on IntegriCloud