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

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
rG95eb4b873b6a: sound tests: Add sndstat nvlist ATF test
Branches
Unknown
Tags
Unknown