s3-spoolss: remove duplicate "." in smbd spooler path
authorDavid Disseldorp <ddiss@samba.org>
Wed, 1 Feb 2012 12:21:04 +0000 (13:21 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 25 Jun 2012 10:51:24 +0000 (12:51 +0200)
source3/printing/printspoolss.c

index c02587e387778417a378fba2419bc9cf2adf1b64..b94314e4204f78dd8cc5aca29fbe2c70c156af2b 100644 (file)
@@ -100,7 +100,8 @@ NTSTATUS print_spool_open(files_struct *fsp,
                }
        }
 
-       /* Ok, now we have to open an actual file.
+       /*
+        * Ok, now we have to open an actual file.
         * Here is the reason:
         * We want to write the spool job to this file in
         * smbd for scalability reason (and also because
@@ -110,9 +111,13 @@ NTSTATUS print_spool_open(files_struct *fsp,
         * to spoolss in output_file so it can monitor and
         * take over once we call EndDocPrinter().
         * Of course we will not start writing until
-        * StartDocPrinter() actually gives the ok. */
+        * StartDocPrinter() actually gives the ok.
+        * smbd spooler files do not include a print jobid
+        * path component, as the jobid is only known after
+        * calling StartDocPrinter().
+        */
 
-       pf->filename = talloc_asprintf(pf, "%s/%s.XXXXXX",
+       pf->filename = talloc_asprintf(pf, "%s/%sXXXXXX",
                                        lp_pathname(SNUM(fsp->conn)),
                                        PRINT_SPOOL_PREFIX);
        if (!pf->filename) {