* 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.)
Reviewed by: jorton, jim, sf
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1416406 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.4
+ *) rotatelogs: Omit the second argument for the first invocation of
+ a post-rotate program when -p is used, per the documentation.
+ [Joe Orton]
+
*) core: Functions to provide server load values: ap_get_sload() and
ap_get_loadavg(). [Jim Jagielski, Jan Kaluza <jkaluza redhat.com>,
Jeff Trawick]
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;
}