From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/69716-check_http.c.diff | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 web/attachments/69716-check_http.c.diff (limited to 'web/attachments/69716-check_http.c.diff') diff --git a/web/attachments/69716-check_http.c.diff b/web/attachments/69716-check_http.c.diff new file mode 100644 index 0000000..503f10c --- /dev/null +++ b/web/attachments/69716-check_http.c.diff @@ -0,0 +1,24 @@ +Index: check_http.c +=================================================================== +RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v +retrieving revision 1.54 +diff -u -r1.54 check_http.c +--- check_http.c 15 Sep 2003 05:03:47 -0000 1.54 ++++ check_http.c 4 Dec 2003 16:00:24 -0000 +@@ -837,11 +837,13 @@ + /* URI_PATH */ + else if (sscanf (pos, HD5, url) == 1) { + /* relative url */ ++ + if ((url[0] != '/')) { +- if ((x = strrchr(url, '/'))) ++ if ((x = strrchr(server_url, '/'))) + *x = '\0'; +- asprintf (&server_url, "%s/%s", server_url, url); ++ asprintf (&url, "%s/%s", server_url, url); + } ++ + i = server_port; + strcpy (type, server_type); + strcpy (addr, host_name); + -- cgit v1.2.3-74-g34f1