mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
r25430: Add the loadparm context to all parametric options.
(This used to be commit fd697d77c9
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
98038f71a7
commit
60a1046c5c
@ -105,7 +105,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
|
||||
mpr_Return(eid, mprCreateUndefinedVar());
|
||||
return 0;
|
||||
}
|
||||
value = lp_get_parametric(service, type, option);
|
||||
value = lp_get_parametric(global_loadparm, service, type, option);
|
||||
if (value == NULL) {
|
||||
mpr_Return(eid, mprCreateUndefinedVar());
|
||||
return 0;
|
||||
@ -130,7 +130,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
|
||||
mpr_Return(eid, mprCreateUndefinedVar());
|
||||
return 0;
|
||||
}
|
||||
value = lp_get_parametric(NULL, type, option);
|
||||
value = lp_get_parametric(global_loadparm, NULL, type, option);
|
||||
if (value == NULL) {
|
||||
mpr_Return(eid, mprCreateUndefinedVar());
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user