git: 1bc5c9a23225 - stable/15 - rc.d/moused: Fix misplaced `basename`
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Sep 2025 07:43:51 UTC
The branch stable/15 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=1bc5c9a2322569ae62c2f428353128c25da4af14 commit 1bc5c9a2322569ae62c2f428353128c25da4af14 Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2025-09-23 08:33:03 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2025-09-24 07:42:04 +0000 rc.d/moused: Fix misplaced `basename` This fixes "usage: basename string [suffix]" message. Reported by: cy MFC after: 1 day (cherry picked from commit f586fc0cf8ff54393a3db565437788a12bdc6e99) --- 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 35a26bd57275..e267ae5b3cd8 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}