summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-01-23Fix sparse warnings: non-ANSI function declaration.Przemyslaw Pawelczyk
Explicitly specify void when a function accepts no arguments.
2018-01-03metaentry.c: Define PATH_MAX if it's undefined.Przemyslaw Pawelczyk
PATH_MAX is not guaranteed by POSIX to be present and some systems, like GNU Hurd, indeed does not define it. http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html https://www.gnu.org/software/hurd/hurd/porting/guidelines.html For now let's define PATH_MAX as 4096 (if it is not already defined), because that's how Linux defines it and it seems quite reasonable. In future dependence on PATH_MAX can be removed.
2017-11-24metaentry.c: Fix underallocation for xattr_lvalues.Przemyslaw Pawelczyk
Wrong type has been used for calculating size of requested memory. Underallocation happened in mentries_fromfile() code path if sizeof(ssize_t) > sizeof(int), which is true on 64-bit platforms. Reading metadata file with extended attributes entries led to corruption of metadata represented in memory on such platforms, so applying could led to corruption of metadata on disk too. Reported-by: Uros Juvan <asmpro@gmail.com>
2016-02-22metastore.c: Be more strict about arguments in compare_print().Przemyslaw Pawelczyk
That way we can avoid possible (yet not feasible in current code) NULL pointer dereference.
2016-02-06Define also _DEFAULT_SOURCE where _BSD_SOURCE is already defined.Przemyslaw Pawelczyk
It's required to avoid getting warnings w/ glibc >= 2.20.
2016-02-05Use C99 predefined identifier __func__ instead of non-std __FUNCTION__.Przemyslaw Pawelczyk
2016-02-01Improve code formatting and convert `unsigned int` to `unsigned`.Przemyslaw Pawelczyk
2016-02-01metaentry.c: Do not compare signed and unsigned integer.Przemyslaw Pawelczyk
2016-01-12metaentry.c: Fix meta entry handling in case of xattr errors.Przemyslaw Pawelczyk
getxattr() call can fail in mentry_create(), so NULL-initialize mentry->xattr_values[i] and update mentry->xattrs upon error, so there is no attempt in mentry_free() to free unitialized xattr_names[i] and xattr_values[i] pointers. Fixes #38.
2016-01-09metaentry.c: Include <bsd/string.h> only on non-BSD platforms.Przemyslaw Pawelczyk
2015-12-01Add action to show metastore version: -v / --version.Przemyslaw Pawelczyk
Fixes #36.
2015-09-13Move source files to src/ directory.Przemyslaw Pawelczyk
As a bonus you can build out-of-tree now via make -f. It's part of the work related to issue #22.