From a975809abc15302bedc1d8fd81779c2dd770dd54 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 16 Jun 2022 00:01:44 -0400 Subject: [PATCH] In webcit-ng, allow -h to specify the Citadel Server data directory. This will allow -h to work the same across all programs. --- webcit-ng/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webcit-ng/main.c b/webcit-ng/main.c index 6028eb62d..ab515adf2 100644 --- a/webcit-ng/main.c +++ b/webcit-ng/main.c @@ -32,6 +32,7 @@ int main(int argc, char **argv) { setuid(atoi(optarg)); break; case 'h': + ctdl_dir = strdup(optarg); break; case 'd': running_as_daemon = 1; @@ -87,7 +88,7 @@ int main(int argc, char **argv) { "[-D daemonizepid] [-v] " "[-g defaultlandingpage] [-B basesize] " "[-s] [-S cipher_suites]" - "[citadel_directory]\n" + "[-h citadel_server_directory]\n" ); return 1; } -- 2.39.2