From f586fc0cf8ff54393a3db565437788a12bdc6e99 Mon Sep 17 00:00:00 2001 From: Vladimir Kondratyev Date: Tue, 23 Sep 2025 11:33:03 +0300 Subject: [PATCH] rc.d/moused: Fix misplaced `basename` This fixes "usage: basename string [suffix]" message. Reported by: cy MFC after: 1 day --- libexec/rc/rc.d/moused | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rc/rc.d/moused b/libexec/rc/rc.d/moused index 35a26bd5727..e267ae5b3cd 100755 --- a/libexec/rc/rc.d/moused +++ b/libexec/rc/rc.d/moused @@ -46,8 +46,8 @@ moused_start() # the moused_port variable, which if not defined sets it to the # passed in device name. # - ms=`basename $1` - if [ -n "$ms" ]; then + if [ -n "$1" ]; then + ms=`basename $1` eval myflags=\${moused_${ms}_flags-$moused_flags} eval myport=\${moused_${ms}_port-/dev/$1} eval mytype=\${moused_${ms}_type-$moused_type}