summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-18Add documentation for new Format 1Adam Spragg
2022-05-18Add -r/--format option to pick the format to save asAdam Spragg
Only version 0 is supported here.
2022-05-18Build metastore.txt as part of `make all`Adam Spragg
2022-05-18Separate format-specific read/write logic into own functionsAdam Spragg
2022-05-18Reuse already calculated end-of-buffer pointerAdam Spragg
2022-05-18Make buffers that are read from `const`-correctAdam Spragg
2022-05-18Label file Format 0 explicitly as Format 0Adam Spragg
2021-04-08Fix "changing owner" message to show owner instead of group.HEADmasterPrzemyslaw Pawelczyk
2021-04-07NEWS: Mention normalize_path() bugfix.Przemyslaw Pawelczyk
2021-04-07AUTHORS: Add Jürgen Bubeck.Przemyslaw Pawelczyk
2021-04-07Fix path normalization for the case of CWD being the root directory (/).Jürgen Bubeck
Previously metastore would fail if running from / and paths were given: $ pwd / $ metastore -d bin lstat failed for .bin: No such file or directory Now it works properly: $ metastore -d bin | head -1 lrwxrwxrwx root root 2018-08-17 16:31:23.120322532 +0200 ./bin/hostname Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2018-09-08Fix conversion specifiers in "Failed to {malloc,strdup}" messages.Przemyslaw Pawelczyk
2018-09-08Add missing argument to "Failed to get metadata for %s\n" message.Przemyslaw Pawelczyk
2018-02-19Support building with empty -DNO_XATTR= (equivalent to -DNO_XATTR=0).Przemyslaw Pawelczyk
2018-02-19Makefile: Support NO_XATTR variable.Przemyslaw Pawelczyk
2018-02-19Support building with no extended attributes support.Przemyslaw Pawelczyk
Support building with no extended attributes support when NO_XATTR macro is predefined to non-0 value (e.g. put -DNO_XATTR in CFLAGS).
2018-02-18utils.h: Introduce new verbosity level: MSG_WARNING.Przemyslaw Pawelczyk
2018-02-18metastore.c: Version information cannot be suppressed.Przemyslaw Pawelczyk
2018-02-18metastore.c: Print usage to stdout if help is requested.Przemyslaw Pawelczyk
Also change level of usage message shown after critical one to error, so it can be suppressed without hiding critical one if desired (-qqq).
2018-02-03README.md: Create a symlink to README.Przemyslaw Pawelczyk
README is actually written in markdown, but I don't like .md extension. README.md is here only for better experience of web viewers of the repo, it's set to be not exported by git archive and won't be present in released tarballs. BTW if GitHub is offline, you can use following unofficial mirror: http://repo.or.cz/metastore.git (It also renders README.md file, that's why I mentioned it here.)
2018-02-03Update copyright notices.Przemyslaw Pawelczyk
2018-02-03Add SPDX License Identifier to all source files.Przemyslaw Pawelczyk
The Software Package Data Exchange (SPDX) is a good initiative, it has matured over time and deserves accelerated adoption in open-source. https://spdx.org/learn https://spdx.org/using-spdx https://spdx.org/license-list
2018-02-03Slightly reformat and modernize GPLv2 only license notices.Przemyslaw Pawelczyk
Reformat second paragraph for better look. It had awkward line wrap. Modernize third paragraph. No need to send letters to FSF in Boston.
2018-01-23Fix documentation: integers are stored in little-endian byte order.Przemyslaw Pawelczyk
David misdocumented read/write int functions back in commit 5fed2f9169fdd0585cc83ff0fa8210d97da77cb2 (2007-05-19) and later it probably got copy-pasted to the documentation of file format.
2018-01-23Fix sparse warning: Variable length array is used.Przemyslaw Pawelczyk
Avoid using VLAs when it is not really needed, especially in cases like this one here, when possible array size is very limited (1-8 bytes).
2018-01-23Fix sparse warning: symbol was not declared. Should it be static?Przemyslaw Pawelczyk
Declare file-scope objects or functions that do not need external linkage as static.
2018-01-23Fix sparse warnings: non-ANSI function declaration.Przemyslaw Pawelczyk
Explicitly specify void when a function accepts no arguments.
2018-01-06metastore v1.1.2v1.1.2Przemyslaw Pawelczyk
2018-01-06Makefile: Treat LDFLAGS as passed to the compiler, not linker directly.Przemyslaw Pawelczyk
2018-01-06NEWS: Mention recent PATH_MAX-related change.Przemyslaw Pawelczyk
See commit 16cde6c32fb3e0640ac01ca5d8ddea127f59106c for details.
2018-01-03Makefile: Add printvars phony target.Przemyslaw Pawelczyk
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.
2018-01-02metastore v1.1.1av1.1.1aPrzemyslaw Pawelczyk
2018-01-02.gitignore: Do not ignore debian/ directory.Przemyslaw Pawelczyk
https://bugs.debian.org/883539 Requested-by: Romain Francoise <rfrancoise@debian.org>
2017-12-04metastore v1.1.1v1.1.1Przemyslaw Pawelczyk
2017-12-03README: Fix another typo.Przemyslaw Pawelczyk
2017-12-03README: Fix typo.Andy
Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
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-06README: Add download section.Przemyslaw Pawelczyk
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-05AUTHORS: Update Joey Hess's email address.Przemyslaw Pawelczyk
2016-02-01metastore v1.1.0v1.1.0Przemyslaw Pawelczyk
2016-02-01Update AUTHORS section of man page.Przemyslaw Pawelczyk
2016-02-02Rewrite .gitignore.Przemyslaw Pawelczyk
2016-02-02Rewrite Makefile using my Almost Universal Makefile template.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-31NEWS: Update planned release date.Przemyslaw Pawelczyk
Starting from upcoming version 1.1.0 I won't ever put planned release date of the next version in NEWS file.