[cups.bugs] [HIGH] STR #3882: cups 1.4.x does not write control file at job creation time

Paul Conklin paul.conklin at cerner.com
Thu Jul 7 09:15:27 PDT 2011


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

in 1.3.x the control file was written to /var/spool/cups at job creation
time (/scheduler/ipp.c) but it looks like this functionality was
in-advertantly left out in 1.4.x.  The comments appear to still support
that it should be saved, but the command itself is missing.  This allows
protection that if the daemon dies or is killed for any reason, that
queued jobs will persist, with out this, the c##### files are never
written to disk and only the d##### files will remain.

RHEL 5.3

1.3.x
 /*
  * Save and log the job...
  */

  cupsdSaveJob(job);

  cupsdLogMessage(CUPSD_LOG_INFO, "[Job %d] Queued on \"%s\" by \"%s\".",
                  job->id, job->dest, job->username);

1.4.x
 /*
  * Save and log the job...
  */

  cupsdLogJob(job, CUPSD_LOG_INFO, "Queued on \"%s\" by \"%s\".",
	      job->dest, job->username);

Link: http://www.cups.org/str.php?L3882
Version: 1.4.7





More information about the cups mailing list