summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/printing/printing.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index a425b87907..1016e6183d 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2439,9 +2439,11 @@ uint32 print_job_start(struct auth_serversupplied_info *server_info, int snum,
fstrcpy(pjob.jobname, jobname);
fstrcpy(pjob.user, lp_printjob_username(snum));
- standard_sub_basic(server_info->sanitized_username,
- pdb_get_domain(server_info->sam_account),
- pjob.user, sizeof(pjob.user)-1);
+ standard_sub_advanced(sharename, server_info->sanitized_username,
+ path, server_info->utok.gid,
+ server_info->sanitized_username,
+ pdb_get_domain(server_info->sam_account),
+ pjob.user, sizeof(pjob.user)-1);
/* ensure NULL termination */
pjob.user[sizeof(pjob.user)-1] = '\0';