Re: [LOW] STR #4244: old control files (c*.O) left in var/spool/cups
Michael Sweet <[email protected]> Wed, 12 Dec 2012 12:20:23 -0800 (PST)
| Newsgroups | gmane.comp.printing.cups.bugs |
|---|---|
| Message-ID | <[email protected]> |
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR Closed w/Resolution] Fixed in Subversion repository. Link: https://www.cups.org/str.php?L4244 Version: 1.6.1 Fix Version: 1.7-current (r10753) _______________________________________________ cups-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/cups-bugs
str4244.patch
(text/plain, 426 B)
Index: scheduler/job.c
===================================================================
--- scheduler/job.c (revision 10752)
+++ scheduler/job.c (working copy)
@@ -2193,7 +2193,16 @@
}
if (!cupsdCloseCreatedConfFile(fp, filename))
+ {
+ /*
+ * Remove backup file and mark this job as clean...
+ */
+
+ strlcat(filename, ".O", sizeof(filename));
+ unlink(filename);
+
job->dirty = 0;
+ }
}