period = days_last_month ();
bypass = days_this_month ();
break;
- case 2: /* yearly, annualy */
+ case 2: /* yearly, annually */
period = days_last_year ();
bypass = days_this_year ();
break;
static int
job_arg_num(const char *ident)
-/* Return the command-line-argument number refering to this job-identifier.
+/* Return the command-line-argument number referring to this job-identifier.
* If it isn't specified, return -1.
*/
{
jr = obstack_alloc(&tab_o, sizeof(job_rec));
if (!strncmp ("@monthly", periods, 8)) {
jr->named_period = 1;
- } else if (!strncmp("@yearly", periods, 7) || !strncmp("@annualy", periods, 8)) {
+ } else if (!strncmp("@yearly", periods, 7) || !strncmp("@annually", periods, 9)) || !strncmp(/* backwards compat misspelling */"@annualy", periods, 8))
jr->named_period = 2;
} else if (!strncmp ("@daily", periods, 6)) {
jr->named_period = 3;
and
.I /etc/crontab
are system jobs, which are used usually for more than one user, thus,
-additionaly the username is needed. MAILTO on the first line is
+additionally the username is needed. MAILTO on the first line is
optional.
.SH EXAMPLE OF A JOB IN /etc/cron.d/job
.nf
fprintf(stderr, "Options:\n");
fprintf(stderr, " -h print this message \n");
fprintf(stderr, " -i deamon runs without inotify support\n");
- fprintf(stderr, " -m <comm> off, or specify prefered client for sending mails\n");
+ fprintf(stderr, " -m <comm> off, or specify preferred client for sending mails\n");
fprintf(stderr, " -n run in foreground\n");
fprintf(stderr, " -p permit any crontab\n");
fprintf(stderr, " -P use PATH=\"%s\"\n", _PATH_DEFPATH);
if (retval <= 0) {
log_it("CRON", pid, "INOTIFY", "read failed", errno);
- /* something fatal must have occured we have no other reasonable
+ /* something fatal must have occurred we have no other reasonable
* way how to handle this failure than exit.
*/
(void) exit(ERROR_EXIT);