]> granicus.if.org Git - cronie/commitdiff
Spelling fixes.
authorVille Skyta <ville.skytta@iki.fi>
Wed, 18 Dec 2013 15:26:24 +0000 (16:26 +0100)
committerMarcela Mašláňová <mmaslano@redhat.com>
Wed, 18 Dec 2013 15:26:24 +0000 (16:26 +0100)
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
anacron/lock.c
anacron/readtab.c
man/crontab.5
src/cron.c
src/database.c

index 7fd59e4cce3000a760ae209c2d2a6255ae615d52..ea3c72933291c69834d26815cc15d9b3d7de234c 100644 (file)
@@ -129,7 +129,7 @@ consider_job(job_rec *jr)
                    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;
index 1b68cab6e3c92b3919b3b554ce02ba3a499a1150..4dd7945a4365dbde595860cf7f762eb4e213f200 100644 (file)
@@ -110,7 +110,7 @@ Return NULL if no more lines.
 
 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.
  */
 {
@@ -210,7 +210,7 @@ register_period_job(const char *periods, const char *delays,
     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;
index bfc8414545dcf19085044650825187afd6b4a8fa..8165cab29cbbb66f641e525470d53fba65a675e9 100644 (file)
@@ -253,7 +253,7 @@ The jobs in
 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
index ec4ace7ca011f3c4e7d6d682e0efb0a24ca08a7b..d4d5b06913679809f4a980bd9c6e692ce241a1ac 100644 (file)
@@ -182,7 +182,7 @@ static void usage(void) {
        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);
index 61764d70a80295b57066d7672a454fb7685be1cb..60135ac8f7f9c33c7fd28fd714025fc464a64d6b 100644 (file)
@@ -327,7 +327,7 @@ void check_inotify_database(cron_db * old_db) {
 
                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);