summaryrefslogtreecommitdiff
path: root/common/path_utils
AgeCommit message (Collapse)AuthorFilesLines
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 Hrozek4-112/+1847
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-02-18License libpath_utils under LGPLStephen Gallagher2-7/+38
2010-02-03Split off libpath_utils into a shared libraryStephen Gallagher3-8/+11
2010-02-03License libpath_utils under LGPLStephen Gallagher3-0/+846
2009-09-15Include m4 directories in tarballStephen Gallagher1-1/+3
Necessary for RPM builds on RHEL5
2009-09-11Add 'make tests' targetStephen Gallagher1-0/+1
2009-07-15add path_utils filesystem path manipulation utility functionsJohn Dennis6-0/+838
remove trace macro, not needed modifications to satisfy Stephen's checkin review correct spelling of PATH_UTILS_ERROR_NOT_FULLY_NORMALIZED add checks for truncation, return error add checks for getcwd errors modify (dst >= dst_end) test to be (dst > dst_end) remove all use of tabs remove all trailing whitespace add missing truncation check after strncpy() Fix path_utils.pc Also correct a minor typo.