]> granicus.if.org Git - apache/commitdiff
* support/rotatelogs.c (post_rotate): Really omit the second arg when
authorJoe Orton <jorton@apache.org>
Thu, 15 Nov 2012 10:40:37 +0000 (10:40 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 15 Nov 2012 10:40:37 +0000 (10:40 +0000)
  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

index 8c611f88d0c8420988014cca41845bd7485ef276..ebae106144c0f10ccec31b79df728d5613c88af0 100644 (file)
@@ -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;
     }