From: Jeff Trawick Date: Mon, 6 Oct 2014 23:19:55 +0000 (+0000) Subject: log the command-line before invoking the log client X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c1a8b8ba46c0178d304f25f22945d2d2c3f432e;p=thirdparty%2Fapache%2Fhttpd.git log the command-line before invoking the log client git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1629785 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_ct_util.c b/modules/ssl/ssl_ct_util.c index 70ea4177c17..c7a2e1ead50 100644 --- a/modules/ssl/ssl_ct_util.c +++ b/modules/ssl/ssl_ct_util.c @@ -371,6 +371,18 @@ apr_status_t ctutil_run_to_log(apr_pool_t *p, return rv; } + if (APLOGtrace1(s)) { + const char *cmdline = ""; + const char **curarg = args; + + while (*curarg) { + cmdline = apr_pstrcat(p, cmdline, *curarg, " ", NULL); + curarg++; + } + ap_log_error(APLOG_MARK, APLOG_TRACE1, 0, s, + "Running \"%s\"", cmdline); + } + rv = apr_proc_create(&proc, args[0], args, NULL, attr, p); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,