1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

smbdotconf: mark "os2 driver map" with substitution="1"

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme 2019-11-05 11:03:23 +01:00 committed by Stefan Metzmacher
parent f47b710b2c
commit f3cfef8785
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<samba:parameter name="os2 driver map"
context="G"
type="string"
substitution="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>The parameter is used to define the absolute

View File

@ -73,7 +73,9 @@ static bool set_driver_mapping(const char *from, const char *to)
*/
WERROR spoolss_map_to_os2_driver(TALLOC_CTX *mem_ctx, const char **pdrivername)
{
const char *mapfile = lp_os2_driver_map(talloc_tos());
const struct loadparm_substitution *lp_sub =
loadparm_s3_global_substitution();
const char *mapfile = lp_os2_driver_map(talloc_tos(), lp_sub);
char **lines = NULL;
const char *drivername;
int numlines = 0;