From ffef83181f2b3d9b6098775ace01b45e48bdd494 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 15 Nov 2012 10:40:37 +0000 Subject: [PATCH] * 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 --- support/rotatelogs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/rotatelogs.c b/support/rotatelogs.c index 8c611f88d0..ebae106144 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; } -- 2.40.0