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:
parent
1f59664b68
commit
65b8577640
@ -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*)
|
||||
|
Loading…
Reference in New Issue
Block a user