Displaying 5 results from an estimated 5 matches for "print_spool_prefix".
2016 Sep 05
1
Samba-CUPS interface
...ee any indication
> that we reverse parse that string, we use the job-id to track the job.
>
> So my untested suggestion is that we/you could remove it from this in
> print_cups.c:
>
> new_jobname = talloc_asprintf(frame,
> "%s%.8u %s", PRINT_SPOOL_PREFIX,
> pjob->jobid, jobname);
> if (new_jobname == NULL) {
> goto out;
> }
>
> Andrew Bartlett
>
Hi Andrew,
You are right, I have thought also about this solution of modifying Samba
source code.
BUT , I wonder :
- if ther...
2016 Sep 02
2
Samba-CUPS interface
Hi,
One of our Samba server (4.4.5) is a print server with CUPS backend . In
addition we are using a print management product that is itself a backend
to cups.
Everything works well, except that the document names that are transmitted
in the chain is of the form : "smbprn.00000648 MyDocument.pdf" . I guess
that the prefix smbprn.00000648 is the samba job ID that is concatenated to
the
2016 Sep 04
0
Samba-CUPS interface
...I don't see an option for that, but I also don't see any indication
that we reverse parse that string, we use the job-id to track the job.
So my untested suggestion is that we/you could remove it from this in
print_cups.c:
new_jobname = talloc_asprintf(frame,
"%s%.8u %s", PRINT_SPOOL_PREFIX,
pjob->jobid, jobname);
if (new_jobname == NULL) {
goto out;
}
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
2003 Dec 01
0
No subject
...001 19:24:03 -0000 1.71.2.40
+++ printing/printing.c 16 Jul 2001 23:31:05 -0000
@@ -916,8 +916,8 @@
tdb_store_int(tdb, "INFO/nextjob", jobid);
/* we have a job entry - now create the spool file */
- slprintf(pjob.filename, sizeof(pjob.filename)-1, "%s/%sXXXXXX",
- path, PRINT_SPOOL_PREFIX);
+ slprintf(pjob.filename, sizeof(pjob.filename)-1, "%s/%s%.6d.XXXXXX",
+ path, PRINT_SPOOL_PREFIX, jobid);
pjob.fd = smb_mkstemp(pjob.filename);
if (pjob.fd == -1) {
--
--------------------------------------------------------
Buying an operating system without source is like...
2003 Dec 01
0
No subject
...printing.old Fri Jul 6 04:01:48 2001
+++ printing.c Mon Jul 16 22:54:00 2001
@@ -916,9 +916,25 @@
tdb_store_int(tdb, "INFO/nextjob", jobid);
/* we have a job entry - now create the spool file */
- slprintf(pjob.filename, sizeof(pjob.filename)-1, "%s/%sXXXXXX",
- path, PRINT_SPOOL_PREFIX);
- pjob.fd = smb_mkstemp(pjob.filename);
+
+ /* !! try jobid first !!
+ * samba uses $PRINT_SPOOL_PREFIX$jobid names
+ * to detect samba spool jobs
+ *
+ * this works for me or ..
+ * TODO: lphost:lpqueue:lpjob -> jobid in
+ * the lpq parsing code ...
+ */
+
+ slprintf(pjob.filename,...