diff options
author | Bo Yang <boyang@novell.com> | 2008-07-16 11:11:55 -0400 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-07-18 15:55:07 +0200 |
commit | bb28cc26fd46b9d62ee2a9465ac760810f1c727d (patch) | |
tree | 237e733b22e10c38eabfa80e3a7513f79b3b1958 /source/printing | |
parent | e51d5026e6d9ef4d014ee6426213809f8c7d88da (diff) | |
download | samba-bb28cc26fd46b9d62ee2a9465ac760810f1c727d.tar.gz samba-bb28cc26fd46b9d62ee2a9465ac760810f1c727d.tar.xz samba-bb28cc26fd46b9d62ee2a9465ac760810f1c727d.zip |
Allow %u parameters for print job username - use advanced sub
(cherry picked from commit 11a8f5161184914bec031c741c57bbce19998d2c)
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/printing.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c index c5fe53f0426..af89852fb95 100644 --- a/source/printing/printing.c +++ b/source/printing/printing.c @@ -2438,8 +2438,10 @@ uint32 print_job_start(struct current_user *user, int snum, char *jobname, NT_DE if ((vuser = get_valid_user_struct(user->vuid)) != NULL) { fstrcpy(pjob.user, lp_printjob_username(snum)); - standard_sub_basic(vuser->user.smb_name, vuser->user.domain, - pjob.user, sizeof(pjob.user)-1); + standard_sub_advanced(sharename, vuser->user.smb_name, path, + vuser->gid, vuser->user.smb_name, + vuser->user.domain, pjob.user, + sizeof(pjob.user) - 1); /* ensure NULL termination */ pjob.user[sizeof(pjob.user)-1] = '\0'; } else { |