summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2010-06-10Don't leak directory access resources on errors in directory_list()Stephen Gallagher1-0/+8
https://fedorahosted.org/sssd/ticket/514
2010-05-17Adding support for explicit 32/64 types (attempt 2).Dmitri Pal5-5/+400
This is a reworked patch to add support for explicit 32 and 64 bit values in the config files.
2010-04-30Introducing a comment objectDmitri Pal5-6/+804
Comment object will store the comments found in the INI file. It is based on the ref_array interface. Fixing review comments for comment obj.
2010-04-30Extending refarray interfaceDmitri Pal3-1/+563
Added functions to inert, delete, replace swap the array elements. Unit test and docs have been updated accordingly. Fixing review comments for refarray.
2010-04-26Code restructuringDmitri Pal10-1472/+1705
Time came to split ini_config.c into many much smaller pieces. 1) ini_parse.c - will have parsing functions 2) ini_get_value.c - will have single value interpretation functions 3) ini_get_array.c - will have array interpretation functions. 4) ini_print.c - error printing 5) ini_defines.h - common constants 6) ini_parse.h header for parsing functions 7) ini_list.c - will have list processing functions
2010-04-14Fixing buildDmitri Pal3-5/+6
2010-04-14Fix ini_config unit testStephen Gallagher1-1/+4
When running 'make distcheck', the entire source directory is set to read-only, to ensure that the build process only has write access to $builddir. As a result, this was causing the unit test for file mode to fail, since the file it was testing resides in the $srcdir. This patch guarantees that the test file has the correct permissions prior to running the access test.
2010-04-14Add ability to trace 64bit numbersDmitri Pal2-2/+58
[TRACE] Adding macros for signed numbers
2010-04-14Acess control and config change checksDmitri Pal4-38/+684
1) Fixed the issue that metadata was saved as numbers. Was supposed to be saved as strings. 2) Added two functions. One is to check permissions on the config file. Another to check if the file has changed and thus the cinfiguration needs to be reread. 3) Added unit test will sample code and comments how to use the functions. 4) Added doxygen description in the comments. 5) Fixed couple typos and ommisions here and there. [INI] Fixing crash detected on 64-bit system This patch corrects original code to be more on the safe side and check parameters before using. Instead of dereferencing metadata it is now passed as reference to the next level. It is not used there yet so no other new changes needed so far. [INI] Addressing review comments [INI] Addressing comments.
2010-04-14Resolve paths for reporting purposesDmitri Pal2-4/+21
2010-04-14Adding content to the metadataDmitri Pal4-13/+140
This patch implements function that collects stats and saves them in the ACCESS section inside metadata.
2010-04-14Adding metadata interfaceDmitri Pal7-277/+915
This patch: 1) Adds the definition of the metadata interface to the header file. The functions that were exposed for no good reason are now hidden. 2) Previously exposed functions and their descriptions are removed from the public header and placed into the source code for now. 3) The function that reads the config file no longer tries to close file in case of error. 4) Lines collection is still passed in into the reading function but as a collection itself not as a pointer to it. 5) All the parts related to processing lines are currently ifdefed using HAVE_VALIDATION that is currently is not defined. This is done to disable creation of the lines collection utill it is actually needed. I did not want to blindly remove it though and loose already done work that will be useful in future. 6) Version of the library and interface is updated 7) New header and source modules are introduced to hold functions related to the meta data. They are mostly stubbed out. This is incomplete patch. It builds and make check runs. It is created just to simplify the review a bit.
2010-04-12Support docdir and abs_builddirStephen Gallagher1-0/+6
Old versions of autoconf (before 2.60) did not include support for the docdir and abs_builddir variables. This patch emulates support for them. Fixes https://fedorahosted.org/sssd/ticket/422
2010-04-08Adding interface documentationDmitri Pal5-20/+1727
Package refarray documentation by default
2010-03-25Fix path_utils_ut segfaultStephen Gallagher1-2/+3
In the case where the allocated buffer is not large enough to hold the resulting absolute path, we were writing out a null terminator outside of the buffer, instead of at its beginning. Also fixes potential issue where split_path would not initialize the count to zero if it returned a failure.
2010-03-25Generate doxygen documentation for path_utilsJakub Hrozek5-113/+1848
2010-03-25Unit tests for path_utilsJakub Hrozek3-0/+741
Fixes: #81
2010-03-25Fixes for path_utilsJakub Hrozek1-63/+109
* Do not segfault on passing NULL path to get_{dir,base}name * There is no way dirname can return "..", remove that code * Buffer overflow in path_concat * Expand . in get_basename * Return NULL rather than crash in split_path on passing NULL path * Be more defensive in directory_list
2010-03-17Fixing type conversion in INI interface.Dmitri Pal3-35/+197
Additional changes.
2010-03-15Convert collection to use sized values.Dmitri Pal3-75/+83
This patch replaces int with int32_t, unsigned with uint32_t, long with int64_t, unsigned long with uint64_t as values that collection can store and hold.
2010-03-15Build and package libini_config docsStephen Gallagher2-2/+1
2010-03-15Adding interface description using doxygen.Dmitri Pal4-161/+2728
2010-03-12Fixing verbosity and formatting of the INI unit test.Dmitri Pal1-132/+197
2010-03-12Do not generate man pages for COLLECION for now.Dmitri Pal1-2/+2
2010-03-08Package libcollection documentation into libcollection-develStephen Gallagher2-2/+6
2010-03-08Documentation for collection interfaceDmitri Pal9-880/+5171
Passed through the interface and changed the comments to comply with the collection interface.
2010-02-18Properly license libdhashStephen Gallagher4-0/+88
2010-02-18License libpath_utils under LGPLStephen Gallagher2-7/+38
2010-02-12Remove ELAPI from the SSSD repositoryStephen Gallagher40-8421/+3
ELAPI now lives in its own project at https://fedorahosted.org/ELAPI
2010-02-10Make collection_queue.h and collection_stack.h into public headersStephen Gallagher1-3/+3
2010-02-03Split refarray off into a shared libraryStephen Gallagher4-10/+13
2010-02-03Add license files for refarrayStephen Gallagher2-0/+839
2010-02-03Split off libini_config into a shared libraryStephen Gallagher4-7/+19
2010-02-03Fix array index errorStephen Gallagher1-1/+1
The null-terminator would have been written one byte past the end of the array (and there may have been an extra garbage character in the index before it)
2010-02-03Add license files for ini_configStephen Gallagher2-0/+839
2010-02-03Split off libcollection into a shared libraryStephen Gallagher3-7/+13
2010-02-03Remove private header requirements from collection_tools.hStephen Gallagher1-1/+0
2010-02-03Add license files for collectionStephen Gallagher2-0/+839
2010-02-03Split off libpath_utils into a shared libraryStephen Gallagher3-8/+11
2010-02-03License libpath_utils under LGPLStephen Gallagher3-0/+846
2010-02-01COLLECTION: Fixing queue collection and unit tests.Dmitri Pal4-298/+478
This patch includes following functionality: 1) Fixed the invalid handling of the pointers in the collection when last element is removed from the collection. 2) Added unit test to verify the fix. 3) Modified the three unit test to be verbose on demand. 4) Switched the main of the unit test to use array of functions rather than big if statement.
2010-01-21REFARRAY: New referenced array objectDmitri Pal9-2/+802
This object allows creation the arrays with the reference count. Usefull when there are many instances of some object have to reference dynamically allocated array which is common for all these instances. In case of ELAPI the event object keeps a referecne to the common array of the sinks in the fail over order. We decided that it will be a common object not specific only to ELAPI. All the review concerns related to this object have been addressed in this patch. It also has been moved to the common area.
2010-01-21INI: Added method to get string list with empty valuesDmitri Pal3-54/+117
The original implementation was compressing the list, throwing away empty strings. The function that did that was pretty brain damaging. I cleaned it up and adjusted so that it could return list with empty values and without them. The old function was turned into a wrapper and a new high level function was intorduced to provide ability to get both empty and non empty strings.
2010-01-21Use version.m4 for setting the SSSD versionStephen Gallagher1-1/+2
This is the preferred way of setting the version in a file, as autotools will properly monitor this file for changes and rerun autoconf/configure when necessary to update the version. This means that we don't need to manually perform an autoreconf in order to build a new RPM
2010-01-20Split off libdhash into a shared libraryStephen Gallagher5-9/+16
Right now, the pkg-config checks for the system version of libdhash are forcibly disabled, requiring the SSSD to build it from its own tree. In the future, when we split the libraries off from the SSSD, it will be easy to switch this check to the external library.
2010-01-20License libdhash under the LGPLStephen Gallagher3-0/+844
2009-12-15Add elapi_ut.conf to the list of dist filesSumit Bose2-3/+4
Some newlines are added, too.
2009-12-10INI Correcting build warnings.Dmitri Pal2-8/+7
The previous patch included "config.h" into the public header which caused all sorts of redefinitions and warnings.
2009-12-10INI: Cleaning FIXME comments.Dmitri Pal3-7/+16
Added configurable key length. Changed comments for the functions that are currently not used and reserved for future functionality.
2009-12-10COLLECTION: Cleaning FIXME commentsDmitri Pal3-20/+2
I scanned through the code and made sure that the FIXME comments are either addressed or a corresponding ticket exists. I removed two comments that had "FIXME" in them. The tickets for those comments are #72 and #308.