[hackers] [quark] Allow dir-listing to be a configurable option || FRIGN

From: <git_AT_suckless.org>
Date: Wed, 20 Aug 2014 20:46:03 +0200

commit 5dac8de322992e3dc72df318b7120cfd7f87ad19
Author: FRIGN <dev_AT_frign.de>
Date: Wed Aug 20 20:47:29 2014 +0200

    Allow dir-listing to be a configurable option

diff --git a/config.def.h b/config.def.h
index 489e1fb..35ee857 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -9,6 +9,7 @@ static const char *group = "nobody";
 static const char *cgi_dir = ".";
 static const char *cgi_script = "/werc.rc";
 static int cgi_mode = 0;
+static int allowdirlist = 0;
 
 static const MimeType servermimes[] = {
         { "html", "text/html; charset=UTF-8" },
diff --git a/quark.c b/quark.c
index d2401e0..89a3a60 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -97,7 +97,6 @@ static char reqhost[256];
 static char reqmod[256];
 static int fd = -1;
 static Request req;
-static int allowdirlist = 0;
 
 char *
 tstamp(time_t t) {
Received on Wed Aug 20 2014 - 20:46:03 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 20 2014 - 20:48:09 CEST