diff options
author | David Disseldorp <ddiss@samba.org> | 2012-02-01 13:21:04 +0100 |
---|---|---|
committer | David Disseldorp <ddiss@samba.org> | 2012-06-26 16:10:39 +0200 |
commit | 1cd2433e8d632f979811b136e0bf31f07d1c1da7 (patch) | |
tree | 73981a4178fdf7b1d9168aaf751ecc19cf6b8ba9 | |
parent | 4e33424581bcb33a32d7971f551a03d4087f75a0 (diff) | |
download | samba-1cd2433e8d632f979811b136e0bf31f07d1c1da7.tar.gz samba-1cd2433e8d632f979811b136e0bf31f07d1c1da7.tar.bz2 samba-1cd2433e8d632f979811b136e0bf31f07d1c1da7.zip |
s3-spoolss: remove duplicate "." in smbd spooler path
-rw-r--r-- | source3/printing/printspoolss.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/printing/printspoolss.c b/source3/printing/printspoolss.c index c02587e387..b94314e420 100644 --- a/source3/printing/printspoolss.c +++ b/source3/printing/printspoolss.c @@ -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) { |