Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[appsync] Use global diag mode state for config dir selection. JB#38342
Selection of diagnostic mode is made once during lifetime of usb-moded process. Passing it around as parameter can only lead to confusion. Make it so that appsync_read_list() reads configuration files from directory determined from globally defined diagnostic mode selection rather than from parameter passed to it. Use glob pattern for determining list of files to read. As a side effect this stops usb-moded from reading all files (e.g. editor backup files accidentally left behind) which could lead into obscure and hard to figure out problems. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
4 changed files
with
45 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters