summaryrefslogtreecommitdiff
path: root/source3/printing/printing.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-16 23:39:26 +0000
committerJeremy Allison <jra@samba.org>2001-07-16 23:39:26 +0000
commita92134c5a41b2687134617e86e083ef38d7ed2e7 (patch)
tree254f58cac1c558c7bb8db5c7b8b96ca3fc39b62f /source3/printing/printing.c
parentedfd138e8798af0245c57131b1a63f4d35fdecc6 (diff)
downloadsamba-a92134c5a41b2687134617e86e083ef38d7ed2e7.tar.gz
samba-a92134c5a41b2687134617e86e083ef38d7ed2e7.tar.bz2
samba-a92134c5a41b2687134617e86e083ef38d7ed2e7.zip
Fix for incorrect creation of print job names, based on a patch by
José M.Rodríguez <josemi@iies.es> Jeremy. (This used to be commit 7ebf284ef7597ee347deb5245d6ba222a102f55d)
Diffstat (limited to 'source3/printing/printing.c')
-rw-r--r--source3/printing/printing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index d0a07ccb4c..fdb9018ede 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -908,8 +908,8 @@ int print_job_start(struct current_user *user, int snum, char *jobname)
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) {