mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
lib:printer_driver: Retrieve Class value
Retrieve the Class value from the inf file [Version] section. Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Bjoern Jacke <bjacke@samba.org>
This commit is contained in:
parent
5442355cdb
commit
7783c62bbf
@ -1034,6 +1034,13 @@ static NTSTATUS setup_driver_by_name(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
}
|
||||
|
||||
status = gp_inifile_getstring_ext(ctx, "Version:Class", &s);
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
if (strequal(s, "Printer")) {
|
||||
r->printer_driver_attributes |= PRINTER_DRIVER_CLASS;
|
||||
}
|
||||
}
|
||||
|
||||
status = gp_inifile_getstring(ctx, "Version:Signature", &s);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user