nbdkit/0002-tar-Document-the-optional-tar-option-in-help-output-.patch
2023-07-13 12:05:26 +01:00

44 lines
1.5 KiB
Diff

From eb44ca26a84c369a7908f19517c0a2f8f621d57f Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 13 Jun 2023 20:25:40 +0100
Subject: [PATCH 02/16] tar: Document the optional tar option in --help output
and synopsis
Fixes: commit 05b49f89dccb0ca3fd0919e9502c54dbcadf0b73
---
filters/tar/nbdkit-tar-filter.pod | 1 +
filters/tar/tar.c | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/filters/tar/nbdkit-tar-filter.pod b/filters/tar/nbdkit-tar-filter.pod
index 96aba16d9..eb0cfd4ab 100644
--- a/filters/tar/nbdkit-tar-filter.pod
+++ b/filters/tar/nbdkit-tar-filter.pod
@@ -5,6 +5,7 @@ nbdkit-tar-filter - read and write files inside tar files without unpacking
=head1 SYNOPSIS
nbdkit file FILENAME.tar --filter=tar tar-entry=PATH_INSIDE_TAR
+ [tar=TAR_COMMAND]
=head1 EXAMPLES
diff --git a/filters/tar/tar.c b/filters/tar/tar.c
index c650a3499..f3adb2c46 100644
--- a/filters/tar/tar.c
+++ b/filters/tar/tar.c
@@ -96,8 +96,9 @@ tar_config_complete (nbdkit_next_config_complete *next,
return next (nxdata);
}
-#define tar_config_help \
- "tar-entry=<FILENAME> (required) The path inside the tar file to serve."
+#define tar_config_help \
+ "tar-entry=<FILENAME> (required) The path inside the tar file to serve.\n" \
+ "tar=<PATH> Path of the tar binary."
static int
tar_thread_model (void)
--
2.41.0