HomeFreeBSD

mixer(8): Make mute and recsrc argument parsing more robust

Description

mixer(8): Make mute and recsrc argument parsing more robust

For the deprecated argument interfaces of the mute (1, 0, ^) and recsrc
(+, -, =, ^) controls, we only check the first character of the
argument, which means that an argument such as "vol.mute=10" would be
valid. Fix this by checking the whole argument string.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Reviewed by: dev_submerge.ch
Differential Revision: https://reviews.freebsd.org/D45973

(cherry picked from commit 8ca73331ef810cd0e0b9e3c37cddc1d89fbe8c6b)

Details

Provenance
christosAuthored on Jul 27 2024, 11:55 AM
Reviewer
dev_submerge.ch
Differential Revision
D45973: mixer(8): Make mute and recsrc argument parsing more robust
Parents
rG22be802cf84b: sound tests: Add sndstat nvlist ATF test
Branches
Unknown
Tags
Unknown