From 17f08cbd0f909181536b93d6c12c7cd69995f09e Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 27 Feb 2014 12:08:03 +0100 Subject: config API: read only specific files from schemaplugindir Currently the config API read any file in the schema plugin dir, typically /usr/share/sssd/sssd.api.d. If there are any unexpected files, like e.g. editor copies or backups, the python code might break because it cannot parse the files. With this patch only files matching the pattern '^sssd-.*\.conf$' are read from this directory. Additionally this patch contains a file which will break the config API self test if it is not filtered out correctly. Reviewed-by: Stephen Gallagher --- src/config/etc/sssd.api.d/crash_test_dummy | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/config/etc/sssd.api.d/crash_test_dummy (limited to 'src/config/etc/sssd.api.d') diff --git a/src/config/etc/sssd.api.d/crash_test_dummy b/src/config/etc/sssd.api.d/crash_test_dummy new file mode 100644 index 000000000..02e447e80 --- /dev/null +++ b/src/config/etc/sssd.api.d/crash_test_dummy @@ -0,0 +1 @@ +Please do not delete this file, it is part of the config API self-test. -- cgit