mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
du: Add version information to libxo output
Add version information to libxo output so that libxo content consumers can track changes. Reviewed by: imp, markj Pull Request: https://github.com/freebsd/freebsd-src/pull/1350
This commit is contained in:
parent
e152944f1a
commit
71978fa41f
@ -55,6 +55,8 @@
|
||||
#define UNITS_2 1
|
||||
#define UNITS_SI 2
|
||||
|
||||
#define DU_XO_VERSION "1"
|
||||
|
||||
static SLIST_HEAD(ignhead, ignentry) ignores;
|
||||
struct ignentry {
|
||||
char *mask;
|
||||
@ -259,6 +261,8 @@ main(int argc, char *argv[])
|
||||
if ((fts = fts_open(argv, ftsoptions, NULL)) == NULL)
|
||||
err(1, "fts_open");
|
||||
|
||||
|
||||
xo_set_version(DU_XO_VERSION);
|
||||
xo_open_container("disk-usage-information");
|
||||
xo_open_list("paths");
|
||||
while (errno = 0, (p = fts_read(fts)) != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user