HomeFreeBSD

bluetooth-config: Fix command line parsing

Description

bluetooth-config: Fix command line parsing

This addresses the problems encountered when parsing options in bluetooth-config.

  • the optional parameters were not properly shifted after consumption
  • the command line parameter count was checked before getopts and not after

Reported by: sjg
Approved by: kp
MFC after: 7 days
Event: Berlin Hackathon 202507
Differential Revision: https://reviews.freebsd.org/D51281

(cherry picked from commit 5031da20599bb1163f0e8d1c4b415ab3bbebce00)

Details

Provenance
erdgeist_erdgeist.orgAuthored on Jul 13 2025, 9:25 AM
lmeCommitted on Jul 20 2025, 9:10 AM
Parents
rGa6693b09e297: inetd.conf: remove -[46] from the ssh entry
Branches
Unknown
Tags
Unknown