From 65b8577640392b5e69da34bc139496f64ee3c46c Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 24 Oct 2002 17:59:58 +0000 Subject: [PATCH] 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 --- etc/MAKEDEV | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/MAKEDEV b/etc/MAKEDEV index fa9dd8cb871a..cdd23dc54d3f 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*)