summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-25 20:16:14 +0000
committerJeremy Allison <jra@samba.org>2002-01-25 20:16:14 +0000
commit9d8ed7220fed8a3b7ff9d45b9c5902c3255956ac (patch)
treeab9092eed226120dffb0a4cf7d7f4df0fd7fcef9 /source3/printing
parentb3e5d34171b8e5e6320c28379cb0021bf857efa5 (diff)
downloadsamba-9d8ed7220fed8a3b7ff9d45b9c5902c3255956ac.tar.gz
samba-9d8ed7220fed8a3b7ff9d45b9c5902c3255956ac.tar.bz2
samba-9d8ed7220fed8a3b7ff9d45b9c5902c3255956ac.zip
Fixed display of "remote downlevel document" in old print job submission
case. Jeremy. (This used to be commit 248770d73072e36fd9812ec5986dce5380dfab33)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printfsp.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/printing/printfsp.c b/source3/printing/printfsp.c
index 322deadf0f..ea50f43d2e 100644
--- a/source3/printing/printfsp.c
+++ b/source3/printing/printfsp.c
@@ -27,17 +27,27 @@ open a print file and setup a fsp for it. This is a wrapper around
print_job_start().
***************************************************************************/
-files_struct *print_fsp_open(connection_struct *conn)
+files_struct *print_fsp_open(connection_struct *conn, char *fname)
{
int jobid;
SMB_STRUCT_STAT sbuf;
extern struct current_user current_user;
files_struct *fsp = file_new(conn);
+ fstring name;
if(!fsp)
return NULL;
- jobid = print_job_start(&current_user, SNUM(conn), "smb.prn");
+ fstrcpy( name, "Remote Downlevel Document");
+ if (fname) {
+ char *p = strrchr(fname, '/');
+ fstrcat(name, " ");
+ if (!p)
+ p = fname;
+ fstrcat(name, p);
+ }
+
+ jobid = print_job_start(&current_user, SNUM(conn), name);
if (jobid == -1) {
file_free(fsp);
return NULL;