]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The scheduler did not delete job control backup files (STR #4244)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 12 Dec 2012 20:19:43 +0000 (20:19 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 12 Dec 2012 20:19:43 +0000 (20:19 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10753 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.6.txt
scheduler/job.c

index 0b4018760bf274bda4e1cd91f00b4291a12c0a79..17ba0d3c76c9c7a12cb24a1a273ecbd5c8447505 100644 (file)
@@ -7,6 +7,7 @@ CHANGES IN CUPS V1.6.2
        - Security: All file, directory, user, and group settings are now stored
          in a separate cups-files.conf configuration file that cannot be set
          through the CUPS web interface or APIs (STR #4223)
+       - The scheduler did not delete job control backup files (STR #4244)
        - cupsGetPPD3 could return a local PPD instead of the correct remote
          PPD.
        - The scheduler incorrectly advertised auth-info-required for local
index 41d7685f09bd5fe73c6378f62e4a11b061d86292..b52892a1f96ffffb465ae1710956107af9085fc5 100644 (file)
@@ -2193,7 +2193,16 @@ cupsdSaveJob(cupsd_job_t *job)           /* I - Job */
   }
 
   if (!cupsdCloseCreatedConfFile(fp, filename))
+  {
+   /*
+    * Remove backup file and mark this job as clean...
+    */
+
+    strlcat(filename, ".O", sizeof(filename));
+    unlink(filename);
+
     job->dirty = 0;
+  }
 }