File: 0015-log-cgi-calls

package info (click to toggle)
mini-httpd 1.30-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,564 kB
  • sloc: ansic: 3,634; sh: 156; makefile: 109
file content (18 lines) | stat: -rw-r--r-- 623 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Emit log entry when CGI script is called,
 enables referrer analysis
Author: Alexandru Mihail, alexandru.mihail2897@gmail.com
Origin: maintainer
Last-Update: 2024-06-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/mini_httpd.c
+++ b/mini_httpd.c
@@ -1796,7 +1796,7 @@
     int parse_headers;
     char* binary;
     char* directory;
-
+    make_log_entry();
     /* If the socket happens to be using one of the stdin/stdout/stderr
     ** descriptors, move it to another descriptor so that the dup2 calls
     ** below don't screw things up.  We arbitrarily pick fd 3 - if there