]> git.ipfire.org Git - thirdparty/cups.git/commit
Use "purge-job" instead of "purge-jobs" when canceling a single job (#742)
authorBryan Mason <bmason@redhat.com>
Tue, 27 Jun 2023 11:18:46 +0000 (04:18 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Jun 2023 11:18:46 +0000 (13:18 +0200)
commitc5ad7aaf6c8063a39974c6b4a3cf59b7f912daae
treedc1ad9ffe1c6215552def7650a5965663010abb4
parentb67102a3dc3ff843e65c58746248657b6dcfced0
Use "purge-job" instead of "purge-jobs" when canceling a single job (#742)

The command "cancel -x <job>" adds "purge-jobs true" to the Cancel-Job
operation; however, the correct attribute to use for Cancel-job is
"purge-job" (singular), not "purge-jobs" (plural).  As a result, job
files are not removed from /var/spool/cups when "cancel -x <job>" is
executed.

This patch resolves the issue by adding "purge-job" when the IPP
operation is Cancel-Job and "purge-jobs" for other IPP operations
(Purge-Jobs, Cancel-Jobs, and Cancel-My-Jobs)
systemv/cancel.c