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
4 "aborting", jobno, filename);
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)",
11 if ((fflags = fcntl(fd_in, F_GETFD)) < 0)
13 * Let's remove the lockfile and reschedule.
15 strncpy(lock_name, dirent->d_name, sizeof(lock_name));
16 + lock_name[sizeof(lock_name)-1] = '\0';
23 /* There's a job for later. Note its execution time if it's
24 - * the earlierst so far.
25 + * the earliest so far.
28 if (next_job > run_time) {
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;
39 main(int argc, char *argv[])
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