Title: atd.c comment-correction

Package: at
Version: 3.1.10

The filenames in /var/spool/at/ are parsed by atd.c with:

  sscanf(dirent->d_name, "%c%5lx%8lx", &queue, &jobno, &ctm)

but the comment inside main doesn't reflect this.  Here's a patch
to fix the comment.

-scott

--- at-3.1.10/atd.c~    2005-08-30 16:42:56.000000000 -0700
+++ at-3.1.10/atd.c     2006-06-10 13:21:55.031231328 -0700
@@ -682,8 +682,8 @@
 {
 /* Browse through  ATJOB_DIR, checking all the jobfiles wether they should
  * be executed and or deleted. The queue is coded into the first byte of
- * the job filename, the date (in minutes since Eon) as a hex number in the
- * following eight bytes, followed by a dot and a serial number.  A file
+ * the job filename, the next 5 bytes encode the serial number in hex, and
+ * the final 8 bytes encode the date (minutes since Eon) in hex.  A file
  * which has not been executed yet is denoted by its execute - bit set.
  * For those files which are to be executed, run_file() is called, which forks
  * off a child which takes care of I/O redirection, forks off another child

Reply via email to