commit - 55ae6c66b2be05e4355b9434a689b19a31a4d693
commit + 8306bb90d1378b32a56f909e973ee6344515cd37
blob - e26509024abe9ff526f27eb5b972e5a566274840
blob + ecbba5c127aaa8d0170ef0d80e0f453fa88b7cc8
--- ge.c
+++ ge.c
struct location *loc;
const char *errstr, *certs_dir = NULL, *hostname = "localhost";
char path[PATH_MAX];
- int ch, port = 1965;
+ int ch, verbose = 0, port = 1965;
setlocale(LC_CTYPE, "");
/* ge doesn't do privsep so no privsep crypto engine. */
conf->use_privsep_crypto = 0;
- while ((ch = getopt_long(argc, argv, "d:H:hp:RV", opts, NULL)) != -1) {
+ while ((ch = getopt_long(argc, argv, "d:H:hp:RVv", opts, NULL)) != -1) {
switch (ch) {
case 'd':
certs_dir = optarg;
case 'V':
puts("Version: " GEMEXP_STRING);
return 0;
+ case 'v':
+ verbose = 1;
+ break;
default:
usage();
break;
if (argc > 1)
usage();
+ log_init(1, LOG_DAEMON);
+ log_setverbose(verbose);
+
/* prepare the configuration */
init_mime(&conf->mime);
blob - d67d9b18f3bdee707e640610e0456906b41aeb71
blob + f4f403fff3c416b0a6e7c035628ecd527f7d5f98
--- gemexp.1
+++ gemexp.1
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.Dd October 18, 2023
+.Dd July 3, 2024
.Dt GEMEXP 1
.Os
.Sh NAME
.Sh SYNOPSIS
.Nm
.Bk -words
-.Op Fl hRV
+.Op Fl hRVv
.Op Fl d Ar certs-dir
.Op Fl H Ar hostname
.Op Fl p Ar port
Generate an RSA key instead of an EC one.
.It Fl V , Fl -version
Print the version and exit.
+.It Fl v
+Verbose mode.
.It Ar directory
The root directory to serve, or the current working directory if not
specified.