Update the job spool filename template to avoid naming issues with printer-name values.
@@ -268,7 +268,7 @@ papplJobCreateFile(
}
// Create a filename with the job-id, job-name, and document-format (extension)...
- snprintf(fname, fnamesize, "%s/%s-%d-%s.%s", directory, job->printer->name, job->job_id, name, ext);
+ snprintf(fname, fnamesize, "%s/p%05dj%09d-%s.%s", directory, job->printer->printer_id, job->job_id, name, ext);
return (open(fname, O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, 0600));
}
