summaryrefslogtreecommitdiff
path: root/lib/printer_driver
diff options
context:
space:
mode:
authorJustin Stephenson <jstephen@redhat.com>2018-11-16 16:03:00 -0500
committerBjoern Jacke <bjacke@samba.org>2019-01-28 15:44:18 +0100
commit04d92b002024c5265c93ce7bd2a7064aaa187abc (patch)
tree239d49b2b996fdb6f7353140054685fe884b1275 /lib/printer_driver
parentb6712ab902ab160bc66a3040eba8fc5c7d921dde (diff)
downloadsamba-04d92b002024c5265c93ce7bd2a7064aaa187abc.tar.gz
lib:printer_driver: Handle PrintProcessor string
This fixes an issue parsing the section of a certain HP driver inf file: PrintProcessor=%PRINT_PROCESSOR% where %PRINT_PROCESSOR% is a [Strings] substituted value, gp_inifile_getstring_ext() performs the substitution correctly. Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Bjoern Jacke <bjacke@samba.org>
Diffstat (limited to 'lib/printer_driver')
-rw-r--r--lib/printer_driver/printer_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/printer_driver/printer_driver.c b/lib/printer_driver/printer_driver.c
index ea5d9efdbe8..50616a869f3 100644
--- a/lib/printer_driver/printer_driver.c
+++ b/lib/printer_driver/printer_driver.c
@@ -589,7 +589,7 @@ static NTSTATUS process_driver_section_printprocessor(struct gp_inifile_context
return NT_STATUS_NO_MEMORY;
}
- status = gp_inifile_getstring(ctx, key, &s);
+ status = gp_inifile_getstring_ext(ctx, key, &s);
if (NT_STATUS_IS_OK(status)) {
s = get_string_unquote(s);