diff options
author | Jeremy Allison <jra@samba.org> | 2001-07-16 23:39:26 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-07-16 23:39:26 +0000 |
commit | 7ebf284ef7597ee347deb5245d6ba222a102f55d (patch) | |
tree | 5f11480f792c068194774f1290f08eb4788a05ce /source/printing | |
parent | 956e2a4e3783beec13b1baddb6384deac60389a9 (diff) | |
download | samba-7ebf284ef7597ee347deb5245d6ba222a102f55d.tar.gz samba-7ebf284ef7597ee347deb5245d6ba222a102f55d.tar.xz samba-7ebf284ef7597ee347deb5245d6ba222a102f55d.zip |
Fix for incorrect creation of print job names, based on a patch by
José M.Rodríguez <josemi@iies.es>
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/printing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c index d0a07ccb4c8..fdb9018ede1 100644 --- a/source/printing/printing.c +++ b/source/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) { |