From: Joe Orton Date: Thu, 15 Nov 2012 10:40:37 +0000 (+0000) Subject: * support/rotatelogs.c (post_rotate): Really omit the second arg when X-Git-Tag: 2.5.0-alpha~6117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffef83181f2b3d9b6098775ace01b45e48bdd494;p=thirdparty%2Fapache%2Fhttpd.git * support/rotatelogs.c (post_rotate): Really omit the second arg when invoking a post-rotate program, rather than passing an empty arg. (Fixes to code match desired&documented behaviour.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1409726 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/rotatelogs.c b/support/rotatelogs.c index 8c611f88d0c..ebae106144c 100644 --- a/support/rotatelogs.c +++ b/support/rotatelogs.c @@ -336,7 +336,7 @@ static void post_rotate(apr_pool_t *pool, struct logfile *newlog, argv[0] = config->postrotate_prog; argv[1] = newlog->name; - if (status->current.name) { + if (status->current.fd) { argv[2] = status->current.name; argv[3] = NULL; }