Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148949177
D43809.id134075.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
633 B
Referenced Files
None
Subscribers
None
D43809.id134075.diff
View Options
diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c
--- a/usr.sbin/mixer/mixer.c
+++ b/usr.sbin/mixer/mixer.c
@@ -117,8 +117,21 @@
initctls(m);
- if (dflag && set_dunit(m, dunit) < 0)
- goto parse;
+ if (dflag) {
+ if (set_dunit(m, dunit) < 0)
+ goto parse;
+ else {
+ /*
+ * Open current mixer since we changed the default
+ * unit, otherwise we'll print and apply changes to the
+ * old one.
+ */
+ (void)mixer_close(m);
+ if ((m = mixer_open(NULL)) == NULL)
+ errx(1, "%s: no such mixer", name);
+ initctls(m);
+ }
+ }
if (sflag) {
printrecsrc(m, oflag);
(void)mixer_close(m);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 22, 6:17 AM (1 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30110870
Default Alt Text
D43809.id134075.diff (633 B)
Attached To
Mode
D43809: mixer(8): Use new mixer if we change the default unit
Attached
Detach File
Event Timeline
Log In to Comment