diff options
author | Joe Orton <jorton@apache.org> | 2012-11-15 11:40:37 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2012-11-15 11:40:37 +0100 |
commit | ffef83181f2b3d9b6098775ace01b45e48bdd494 (patch) | |
tree | 9e2c2559dc53a7ceece75021abfdfda28be1f58e /support | |
parent | Give the opportunity to the compiler to compute at compile time the strlen of... (diff) | |
download | apache2-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.c | 2 |
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; } |