HomeFreeBSD

mixer(8): Report an error if the passed value is an empty string

Description

mixer(8): Report an error if the passed value is an empty string

This patch fixes a bug that made the mixer command enter
an infinite loop when instructed to set the value of a device
to an empty string (e.g., mixer vol "").

Additionally, some tests for mixer(8) are being added.

PR: 240039
Reviewed by: hselasky, mav
Approved by: src (hselasky, mav)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D21409

Details

Provenance
0mpAuthored on Aug 25 2019, 5:55 PM
Parents
rG21aae72489ab: Remove zlib 1.0.4 from kernel.
Branches
Unknown
Tags
Unknown

Event Timeline