diff options
author | Rainer Jung <rjung@apache.org> | 2015-03-13 13:24:17 +0100 |
---|---|---|
committer | Rainer Jung <rjung@apache.org> | 2015-03-13 13:24:17 +0100 |
commit | f222f9fdf0a8776d1f9aac38266ec194a1f11711 (patch) | |
tree | 83fcb62e11acd11cd1f640099510b9ede3bd0774 /support | |
parent | Small changes to rotatelogs: (diff) | |
download | apache2-f222f9fdf0a8776d1f9aac38266ec194a1f11711.tar.xz apache2-f222f9fdf0a8776d1f9aac38266ec194a1f11711.zip |
Choose "-D" instead of "-d" for the rotatelogs
option that creates the path to the log file.
I want to use "-d" for another directory related
option next where (I think) the "directory" "d"
makes more sense.
"-d" has not yet been backported, so changing
to "-D" is not a real compatibility issue.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1666417 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r-- | support/rotatelogs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/support/rotatelogs.c b/support/rotatelogs.c index 5d936c5c2d..87a26a4d08 100644 --- a/support/rotatelogs.c +++ b/support/rotatelogs.c @@ -109,9 +109,9 @@ static void usage(const char *argv0, const char *reason) } fprintf(stderr, #if APR_FILES_AS_SOCKETS - "Usage: %s [-v] [-l] [-L linkname] [-p prog] [-f] [-d] [-t] [-e] [-c] [-n number] <logfile> " + "Usage: %s [-v] [-l] [-L linkname] [-p prog] [-f] [-D] [-t] [-e] [-c] [-n number] <logfile> " #else - "Usage: %s [-v] [-l] [-L linkname] [-p prog] [-f] [-d] [-t] [-e] [-n number] <logfile> " + "Usage: %s [-v] [-l] [-L linkname] [-p prog] [-f] [-D] [-t] [-e] [-n number] <logfile> " #endif "{<rotation time in seconds>|<rotation size>(B|K|M|G)} " "[offset minutes from UTC]\n\n", @@ -143,7 +143,7 @@ static void usage(const char *argv0, const char *reason) " -L path Create hard link from current log to specified path.\n" " -p prog Run specified program after opening a new log file. See below.\n" " -f Force opening of log on program start.\n" - " -d Create parent directories of log file.\n" + " -D Create parent directories of log file.\n" " -t Truncate logfile instead of rotating, tail friendly.\n" " -e Echo log to stdout for further processing.\n" #if APR_FILES_AS_SOCKETS @@ -583,9 +583,9 @@ int main (int argc, const char * const argv[]) apr_pool_create(&status.pool, NULL); apr_getopt_init(&opt, status.pool, argc, argv); #if APR_FILES_AS_SOCKETS - while ((rv = apr_getopt(opt, "lL:p:fdtvecn:", &c, &opt_arg)) == APR_SUCCESS) { + while ((rv = apr_getopt(opt, "lL:p:fDtvecn:", &c, &opt_arg)) == APR_SUCCESS) { #else - while ((rv = apr_getopt(opt, "lL:p:fdtven:", &c, &opt_arg)) == APR_SUCCESS) { + while ((rv = apr_getopt(opt, "lL:p:fDtven:", &c, &opt_arg)) == APR_SUCCESS) { #endif switch (c) { case 'l': @@ -604,7 +604,7 @@ int main (int argc, const char * const argv[]) case 'f': config.force_open = 1; break; - case 'd': + case 'D': config.create_path = 1; break; case 't': |