- Update to version 0.7.1:
* Improved error handling while parsing values with the wrong format.
Added new return value ECONF_VALUE_CONVERSION_ERROR.
* Setting parsing options via econf_file struct.
see econf_newKeyFile_with_options. These options will be used by
econf_readConfig and econf_readConfigWithCallback.
Following options are supported:
JOIN_SAME_ENTRIES (default 0)
Parsed entries with the same name will not be replaces but
will be joined to one entry.
PYTHON_STYLE (default 0)
E.G. Identations will be handled like multiline entries.
PARSING_DIRS (default /usr/etc/:/run:/etc)
List of directories from which the configuration files have to be parsed.
The list is a string, divides by ":". The last entry has the highest
priority. E.g.: "PARSING_DIRS=/usr/etc/:/run:/etc"
CONFIG_DIRS (default <empty>)
List of directory structures (with order) which describes the directories
in which the files have to be parsed.
The list is a string, divides by ":". The last entry has the highest
priority. E.g. with the given list: "CONFIG_DIRS=.conf.d:.d" files in
following directories will be parsed:
"<default_dirs>/<config_name>.conf.d/"
"<default_dirs>/<config_name>.d/"
"<default_dirs>/<config_name>/"
* CAUTION: From now on every econf_file element MUST be intialized if
econf_readConfig and econf_readConfigWithCallback is used.
Either with NULL or:
econf_file *key_file = NULL;
if (error = econf_newKeyFile_with_options(&key_file, "PYTHON_STYLE=1"))
{
fprintf (stderr, "ERROR: couldn't create new key file: %s\n",
econf_errString(error));
return 1;
}
error = econf_readConfig (&key_file,
"foo",
"/usr/lib",
"example",
"conf",
"=", "#");
- Update to version 0.7.1:
* Improved error handling while parsing values with the wrong format.
Added new return value ECONF_VALUE_CONVERSION_ERROR.
* Setting parsing options via econf_file struct.
see econf_newKeyFile_with_options. These options will be used by
econf_readConfig and econf_readConfigWithCallback.
Following options are supported:
JOIN_SAME_ENTRIES (default 0)
Parsed entries with the same name will not be replaces but
will be joined to one entry.
PYTHON_STYLE (default 0)
E.G. Identations will be handled like multiline entries.
PARSING_DIRS (default /usr/etc/:/run:/etc)
List of directories from which the configuration files have to be parsed.
The list is a string, divides by ":". The last entry has the highest
priority. E.g.: "PARSING_DIRS=/usr/etc/:/run:/etc"
CONFIG_DIRS (default <empty>)
List of directory structures (with order) which describes the directories
in which the files have to be parsed.
The list is a string, divides by ":". The last entry has the highest
priority. E.g. with the given list: "CONFIG_DIRS=.conf.d:.d" files in
following directories will be parsed:
"<default_dirs>/<config_name>.conf.d/"
"<default_dirs>/<config_name>.d/"
"<default_dirs>/<config_name>/"
* CAUTION: From now on every econf_file element MUST be intialized if
econf_readConfig and econf_readConfigWithCallback is used.
Either with NULL or:
econf_file *key_file = NULL;
if (error = econf_newKeyFile_with_options(&key_file, "PYTHON_STYLE=1"))
{
fprintf (stderr, "ERROR: couldn't create new key file: %s\n",
econf_errString(error));
return 1;
}
error = econf_readConfig (&key_file,
"foo",
"/usr/lib",
"example",
"conf",
"=", "#");
OBS-URL: https://build.opensuse.org/request/show/1179642
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=28
- Update to version 0.7.0:
* Defining manual parsing directories (#209)
* parsing config files in python style
* econf_readConfig: set usr_subdir to empty string if it is NULL
* Fix static analyzer detected issues (#202)
* comment string can be in the parsed value which is defined with quotes (#207)
* tst-comments2: comment sign in quoted string (#205)
* Setting options via new econf_newKeyFile_with_options. (#206)
- Update to version 0.7.0:
* Defining manual parsing directories (#209)
* parsing config files in python style
* econf_readConfig: set usr_subdir to empty string if it is NULL
* Fix static analyzer detected issues (#202)
* comment string can be in the parsed value which is defined with quotes (#207)
* tst-comments2: comment sign in quoted string (#205)
* Setting options via new econf_newKeyFile_with_options. (#206)
OBS-URL: https://build.opensuse.org/request/show/1178500
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=27
- Update to version 0.5.2:
* Fixed build for aarch64 and gcc13.
* Making the output verbose when a test fails.
* Fixed a stack-buffer-overflow vulnerability in "econf_writeFile"
function.
* Fixed a stack-buffer-overflow vulnerability in "read_file"
function.
* Added new feature: econf_set_conf_dirs (const char **dir_postfix_list)
Sets a list of directory structures (with order) which describes
the directories in which the files have to be parsed.
E.G. with the given list: {"/conf.d/", ".d/", "/", NULL} files in following
directories will be parsed:
"<default_dirs>/<project_name>.<suffix>.d/"
"<default_dirs>/<project_name>/conf.d/"
"<default_dirs>/<project_name>.d/"
"<default_dirs>/<project_name>/"
The entry "<default_dirs>/<project_name>.<suffix>.d/" will be added
automatically.
* General code cleanup.
OBS-URL: https://build.opensuse.org/request/show/1074225
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=10
- Update to version 0.5.0:
* API calls econf_read*WithCallback supporting a general (void *)
argument for user defined data with which the callback function is
called.
* Tagged following functions deprecated:
econf_requireOwner, econf_requireGroup, econf_requirePermissions,
econf_followSymlinks, econf_reset_security_settings
Use one of the econf_read*WithCallback functions instead.
OBS-URL: https://build.opensuse.org/request/show/1039621
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=6
- Update to version 0.3.5+git20200203.3144b69:
* Release version 0.3.5
* Use float.h instead of obsolete gnuism values.h
* Remove gnuism (strdupa)
* Check for empty value (NULL pointer) before calling strdup.
- Update to version 0.3.4+git20200121.febebf2:
* Release version 0.3.4
* Fix buffer overflow in econf_readDirs
* Fix parsing of quoted strings, and values starting with delimiters
* tests: add test for quoted strings
* tests: tst-configdirs5: fix config dir paths
OBS-URL: https://build.opensuse.org/request/show/769722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=6