]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl: Read only *.conf files when a directory is passed via INCLUDE
authorTakashi Iwai <tiwai@suse.de>
Thu, 14 Jun 2012 11:14:48 +0000 (13:14 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 12 Sep 2012 13:56:38 +0000 (15:56 +0200)
commit7b99f3a7249845716cf6057e563b7279b1f0dfc4
tree399d4601072abf4aef485f187b70a8262c072e47
parent0daa1163db4127755f1793e91544c6e28116ecdc
alsactl: Read only *.conf files when a directory is passed via INCLUDE

When alsactl init is invoked and a directory path is passed to INCLUDE
command in the config file, read only *.conf files in that directory.
This will avoid reading backup files or invalid files that have been
created accidentally.

Also by using scandir() with alphasort(), alsactl reads the files in
alphabetical order.  Thus it's highly recommended to use some number
prefix to the file name for assuring the order.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsactl/alsactl_init.xml
alsactl/init_parse.c