mirror of
https://github.com/vgough/encfs.git
synced 2025-01-23 14:18:35 +01:00
Allow to use extpass in encfsctl
This commit is contained in:
parent
da03864538
commit
cde0103a85
@ -93,7 +93,7 @@ struct CommandOpts {
|
|||||||
{"showcruft", 1, 1, cmd_showcruft, "(root dir)",
|
{"showcruft", 1, 1, cmd_showcruft, "(root dir)",
|
||||||
// xgroup(usage)
|
// xgroup(usage)
|
||||||
gettext_noop(" -- show undecodable filenames in the volume")},
|
gettext_noop(" -- show undecodable filenames in the volume")},
|
||||||
{"cat", 2, 2, cmd_cat, "(root dir) path",
|
{"cat", 2, 3, cmd_cat, "[--extpass=prog] (root dir) path",
|
||||||
// xgroup(usage)
|
// xgroup(usage)
|
||||||
gettext_noop(" -- decodes the file and cats it to standard out")},
|
gettext_noop(" -- decodes the file and cats it to standard out")},
|
||||||
{"decode", 1, 100, cmd_decode,
|
{"decode", 1, 100, cmd_decode,
|
||||||
@ -403,12 +403,11 @@ class WriteOutput {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int cmd_cat(int argc, char **argv) {
|
static int cmd_cat(int argc, char **argv) {
|
||||||
(void)argc;
|
RootPtr rootInfo = initRootInfo(argc, argv);
|
||||||
RootPtr rootInfo = initRootInfo(argv[1]);
|
|
||||||
|
|
||||||
if (!rootInfo) return EXIT_FAILURE;
|
if (!rootInfo) return EXIT_FAILURE;
|
||||||
|
|
||||||
const char *path = argv[2];
|
const char *path = argv[0];
|
||||||
WriteOutput output(STDOUT_FILENO);
|
WriteOutput output(STDOUT_FILENO);
|
||||||
int errCode = processContents(rootInfo, path, output);
|
int errCode = processContents(rootInfo, path, output);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user