]> git.pld-linux.org Git - packages/at.git/blame - at-typo.patch
- removed some obsolete rc-script macros + some minor changes
[packages/at.git] / at-typo.patch
CommitLineData
a01ad508 1--- at-3.1.7/atd.c.tyop Wed Mar 1 14:32:47 2000
2+++ at-3.1.7/atd.c Wed Mar 1 14:34:52 2000
99602c2b 3@@ -247,7 +247,7 @@
4 "aborting", jobno, filename);
5
6 if (buf.st_nlink > 2) {
7- perr("Someboy is trying to run a linked script for job %8lu (%.500s)",
8+ perr("Somebody is trying to run a linked script for job %8lu (%.500s)",
9 filename);
10 }
11 if ((fflags = fcntl(fd_in, F_GETFD)) < 0)
a01ad508 12@@ -493,6 +493,7 @@
13 * Let's remove the lockfile and reschedule.
14 */
15 strncpy(lock_name, dirent->d_name, sizeof(lock_name));
16+ lock_name[sizeof(lock_name)-1] = '\0';
17 lock_name[0] = '=';
18 unlink(lock_name);
19 next_job = now;
20@@ -500,7 +501,7 @@
21 continue;
22 }
23 /* There's a job for later. Note its execution time if it's
24- * the earlierst so far.
25+ * the earliest so far.
26 */
27 if (run_time > now) {
28 if (next_job > run_time) {
29@@ -518,6 +519,7 @@
30 run_batch++;
31 if (strcmp(batch_name, dirent->d_name) > 0) {
32 strncpy(batch_name, dirent->d_name, sizeof(batch_name));
33+ batch_name[sizeof(batch_name)-1] = '\0';
34 batch_uid = buf.st_uid;
35 batch_gid = buf.st_gid;
36 batch_queue = queue;
37@@ -553,7 +555,7 @@
38 int
39 main(int argc, char *argv[])
40 {
41-/* Browse through ATJOB_DIR, checking all the jobfiles wether they should
42+/* Browse through ATJOB_DIR, checking all the jobfiles whether they should
43 * be executed and or deleted. The queue is coded into the first byte of
44 * the job filename, the date (in minutes since Eon) as a hex number in the
45 * following eight bytes, followed by a dot and a serial number. A file
This page took 0.056121 seconds and 4 git commands to generate.