summaryrefslogtreecommitdiff
path: root/support/rotatelogs.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2012-11-15 10:40:37 +0000
committerJoe Orton <jorton@apache.org>2012-11-15 10:40:37 +0000
commitffef83181f2b3d9b6098775ace01b45e48bdd494 (patch)
tree9e2c2559dc53a7ceece75021abfdfda28be1f58e /support/rotatelogs.c
parent6a25b57e0dd84d31c22c8dd4c3b508c9ff19a889 (diff)
downloadhttpd-ffef83181f2b3d9b6098775ace01b45e48bdd494.tar.gz
* 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 'support/rotatelogs.c')
-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;
}