summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrdscarabe@grdscarabe.net <grdscarabe@grdscarabe.net>2008-11-13 13:22:55 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-13 13:22:55 +0100
commit6596a405f6b9f00dcbab9548a1e0afce04b99421 (patch)
tree9aceee045fe8cc93c32a4c9a69d8f4265655ca26
parent01285f20d9f1c51d251bc143dd1c9f2ad026f87b (diff)
downloadalsa-utils-6596a405f6b9f00dcbab9548a1e0afce04b99421.tar.gz
Create a special fd redirection for menu choice.
Without this patch, dialog errors gets interpreted as the choice, causing errors related to loading "snd-***" module. The problem was reported as Gentoo bug #96467 ( https://bugs.gentoo.org/show_bug.cgi?id=96467 ). Signed-off-by: Diego 'Flameeyes' Pettenò <flameeyes@gmail.com>
-rw-r--r--alsaconf/alsaconf.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in
index 47d6da5..806ddb6 100644
--- a/alsaconf/alsaconf.in
+++ b/alsaconf/alsaconf.in
@@ -1411,7 +1411,7 @@ if [ x$devs_found != x ]; then
Following card(s) are found on your system.
Choose a soundcard to configure:
")
- $DIALOG --title "$title" --menu "$msg" 17 76 8 "${devs_found[@]}" 2> $FOUND || acex 0
+ $DIALOG --title "$title" --menu "$msg" 17 76 8 "${devs_found[@]}" --output-fd 3 3> $FOUND || acex 0
card=`head -n 1 $FOUND`
if [ "$card" = "legacy" ]; then
ac_config_legacy