ehlo,
Attached is a sligtly modified version of Michal's patch.
I fixed few coding style issues + added missing creation of directory
+ spec file change.
You might notice that Michal removed detection of sssd.conf modified time.
It is because mtime could be obtiained from sssd.conf before parsing.
However, snippets files are open after parsing sssd.conf and mtime
of snippet files is ignored in the process.
We have few options.
* check mtime directly in sssd
* add new function to libini_config to get latest mtime before parsing
(max_mtime(main.conf + alowed snippet files)
// it's little bit a complication for user of libini_config
// because user will need to paste regex for allowed snippets twice
// 1st time in new function for checking mtime and 2nd time in function
// ini_config_augment
* modify libini_config to set max mtime while parsing snippet files
// but we will need to parse files anyway. So I'm not sure what will be
// benefit of cehcking mtime after parsing.
* last option is to ignore mtime. (Michal's current version)
// and remove FIXME :-)
The main purpose of this mail is to decide wheteer we want change in ding-libs
or no.
BTW. We cannot change directory for snippet files from command line.
Do we want such feature?
[root@graviton ~]# /usr/sbin/sssd --help
Usage: sssd [OPTION...]
-d, --debug-level=INT Debug level
-f, --debug-to-files Send the debug output to files instead of
stderr
--debug-timestamps=INT Add debug timestamps
--debug-microseconds=INT Show timestamps with microseconds
-D, --daemon Become a daemon (default)
-i, --interactive Run interactive (not a daemon)
-c, --config=STRING Specify a non-default config file
--version Print version number and exit
Help options:
-?, --help Show this help message
--usage Display brief usage message
LS