Skip to content
Snippets Groups Projects
Commit 0ac1423b authored by Edward Betts's avatar Edward Betts Committed by Kamil Dudka
Browse files

correct spelling mistakes

Closes #139
parent 94315822
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -41,7 +41,7 @@ and verify the PGP signature on the distribution tarball:
$ gpg --verify logrotate-3.11.0.tar.xz.asc logrotate-3.11.0.tar.xz
 
If succesful your GPG output should look like this:
If successful your GPG output should look like this:
 
gpg: Signature made Fri 02 Dec 2016 08:30:39 AM EST
gpg: using RSA key 873DB37572A37B36
Loading
Loading
Loading
Loading
@@ -471,7 +471,7 @@ static void copyLogInfo(struct logInfo *to, struct logInfo *from)
to->oldDir = strdup(from->oldDir);
to->criterium = from->criterium;
to->weekday = from->weekday;
to->threshhold = from->threshhold;
to->threshold = from->threshold;
to->minsize = from->minsize;
to->maxsize = from->maxsize;
to->rotateCount = from->rotateCount;
Loading
Loading
@@ -689,7 +689,7 @@ int readAllConfigPaths(const char **paths)
.numFiles = 0,
.oldDir = NULL,
.criterium = ROT_SIZE,
.threshhold = 1024 * 1024,
.threshold = 1024 * 1024,
.minsize = 0,
.maxsize = 0,
.rotateCount = 0,
Loading
Loading
@@ -1161,7 +1161,7 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig)
}
if (!strncmp(opt, "size", 4)) {
newlog->criterium = ROT_SIZE;
newlog->threshhold = size;
newlog->threshold = size;
} else if (!strncmp(opt, "maxsize", 7)) {
newlog->maxsize = size;
} else {
Loading
Loading
@@ -1189,7 +1189,7 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig)
newlog->criterium = ROT_HOURLY;
} else if (!strcmp(key, "daily")) {
newlog->criterium = ROT_DAYS;
newlog->threshhold = 1;
newlog->threshold = 1;
} else if (!strcmp(key, "monthly")) {
newlog->criterium = ROT_MONTHLY;
} else if (!strcmp(key, "weekly")) {
Loading
Loading
@@ -1480,7 +1480,7 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig)
newlog->compress_prog);
 
compresscmd_base = strdup(basename(newlog->compress_prog));
/* we check whether we changed the compress_cmd. In case we use the apropriate extension
/* we check whether we changed the compress_cmd. In case we use the appropriate extension
as listed in compress_cmd_list */
for(i = 0; i < compress_cmd_list_size; i++) {
if (!strcmp(compress_cmd_list[i].cmd, compresscmd_base)) {
Loading
Loading
Loading
Loading
@@ -602,7 +602,7 @@ is replaced. At startup, the taboo pattern list is empty.
\fBweekly\fR [\fIweekday\fR]
Log files are rotated once each \fIweekday\fR, or if the date is advanced by at
least 7 days since the last rotation (while ignoring the exact time). The
\fIweekday\fR intepretation is following: 0 means Sunday, 1 means Monday, ...,
\fIweekday\fR interpretation is following: 0 means Sunday, 1 means Monday, ...,
6 means Saturday; the special value 7 means each 7 days, irrespectively of
weekday. Defaults to 0 if the \fIweekday\fR argument is omitted.
 
Loading
Loading
Loading
Loading
@@ -1194,7 +1194,7 @@ static int findNeedRotating(struct logInfo *log, int logNum, int force)
state->doRotate = 1;
}
else if (log->criterium == ROT_SIZE) {
state->doRotate = (sb.st_size >= log->threshhold);
state->doRotate = (sb.st_size >= log->threshold);
if (!state->doRotate) {
message(MESS_DEBUG, " log does not need rotating "
"(log size is below the 'size' threshold)\n");
Loading
Loading
@@ -1942,7 +1942,7 @@ static int rotateLogSet(struct logInfo *log, int force)
message(MESS_DEBUG, "hourly ");
break;
case ROT_DAYS:
message(MESS_DEBUG, "after %jd days ", (intmax_t)log->threshhold);
message(MESS_DEBUG, "after %jd days ", (intmax_t)log->threshold);
break;
case ROT_WEEKLY:
message(MESS_DEBUG, "weekly ");
Loading
Loading
@@ -1954,7 +1954,7 @@ static int rotateLogSet(struct logInfo *log, int force)
message(MESS_DEBUG, "yearly ");
break;
case ROT_SIZE:
message(MESS_DEBUG, "%jd bytes ", (intmax_t)log->threshhold);
message(MESS_DEBUG, "%jd bytes ", (intmax_t)log->threshold);
break;
default:
message(MESS_DEBUG, "rotateLogSet() does not have case for: %d ", log->criterium);
Loading
Loading
Loading
Loading
@@ -49,7 +49,7 @@ struct logInfo {
enum { ROT_HOURLY, ROT_DAYS, ROT_WEEKLY, ROT_MONTHLY, ROT_YEARLY, ROT_SIZE
} criterium;
int weekday; /* used by ROT_WEEKLY only */
off_t threshhold;
off_t threshold;
off_t maxsize;
off_t minsize;
int rotateCount;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment