httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r1409726 - /httpd/httpd/trunk/support/rotatelogs.c
Date Thu, 15 Nov 2012 10:40:38 GMT
Author: jorton
Date: Thu Nov 15 10:40:37 2012
New Revision: 1409726

URL: http://svn.apache.org/viewvc?rev=1409726&view=rev
Log:
* 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.)

Modified:
    httpd/httpd/trunk/support/rotatelogs.c

Modified: httpd/httpd/trunk/support/rotatelogs.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/rotatelogs.c?rev=1409726&r1=1409725&r2=1409726&view=diff
==============================================================================
--- httpd/httpd/trunk/support/rotatelogs.c (original)
+++ httpd/httpd/trunk/support/rotatelogs.c Thu Nov 15 10:40:37 2012
@@ -336,7 +336,7 @@ static void post_rotate(apr_pool_t *pool
 
     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;
     }



Mime
View raw message