]> 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)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 Jun 2012 14:06:42 +0000 (16:06 +0200)
commitc68a3d02d161ccb6358620fb6442bc5c194f20f1
tree3aa6d6d778c43174cbf10eab4765966e781590ba
parentb72e221aab77229f5195c15b1675de8e52db3cb0
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