Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:npaxton
openwbem
openwbem-additional_config_files.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openwbem-additional_config_files.patch of Package openwbem
--- ./src/cimom/common/OW_CIMOMEnvironment.cpp.orig 2006-05-23 01:46:29.000000000 +0200 +++ ./src/cimom/common/OW_CIMOMEnvironment.cpp 2006-05-23 01:47:53.000000000 +0200 @@ -784,6 +784,24 @@ ConfigOpts::ADDITIONAL_CONFIG_FILES_DIRS_opt, String(OW_DEFAULT_ADDITIONAL_CONFIG_FILES_DIRS).tokenize(OW_PATHNAME_SEPARATOR), OW_PATHNAME_SEPARATOR); + for (size_t i = 0; i < configDirs.size(); ++i) + { + String const & dir = configDirs[i]; + StringArray dir_entries; + bool ok = FileSystem::getDirectoryContents(dir, dir_entries); + if (!ok) + { + OW_THROW(ConfigException, Format("Unable to read additional config directory: %1", dir).c_str()); + } + for (size_t j = 0; j < dir_entries.size(); ++j) + { + String const & fname = dir_entries[j]; + if (fname.endsWith(".conf")) + { + ConfigFile::loadConfigFile(dir + "/" + fname, *m_configItems); + } + } + } } ////////////////////////////////////////////////////////////////////////////// bool
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor