summaryrefslogtreecommitdiffstats
path: root/support/rotatelogs.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2012-11-15 11:40:37 +0100
committerJoe Orton <jorton@apache.org>2012-11-15 11:40:37 +0100
commitffef83181f2b3d9b6098775ace01b45e48bdd494 (patch)
tree9e2c2559dc53a7ceece75021abfdfda28be1f58e /support/rotatelogs.c
parentGive the opportunity to the compiler to compute at compile time the strlen of... (diff)
downloadapache2-ffef83181f2b3d9b6098775ace01b45e48bdd494.tar.xz
apache2-ffef83181f2b3d9b6098775ace01b45e48bdd494.zip
* 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
Diffstat (limited to '')
-rw-r--r--support/rotatelogs.c2
1 files changed, 1 insertions, 1 deletions
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;
}