In webcit-ng, allow -h to specify the Citadel Server data directory. This will allow...
authorArt Cancro <ajc@citadel.org>
Thu, 16 Jun 2022 04:01:44 +0000 (00:01 -0400)
committerArt Cancro <ajc@citadel.org>
Thu, 16 Jun 2022 04:01:44 +0000 (00:01 -0400)
webcit-ng/main.c

index 6028eb62d86f8cdfc8a74f5e5740c02b300e6813..ab515adf28caacabbc3812be03ed82f983ff6903 100644 (file)
@@ -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;
                }