1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r23579: Up to now, the "allparameters" argument to lp_next_parameter was

not effective for the global section (snum < 0). This checkin
makes it effective for the global section, too.

This does not produce changes in the results of the present calls of
lp_next_parameter: Beside the new use in utils/net_conf.c (which is
hereby fixed), the only calls of lp_next_parameter are in web/swat.c,
where it is effectively always called with allparameters == 1.

Michael
This commit is contained in:
Michael Adam 2007-06-21 23:11:21 +00:00 committed by Gerald (Jerry) Carter
parent 0c9cb69b45
commit 56f82485ec

View File

@ -4308,6 +4308,9 @@ struct parm_struct *lp_next_parameter(int snum, int *i, int allparameters)
&& (parm_table[*i].ptr ==
parm_table[(*i) - 1].ptr))
continue;
if (is_default(*i) && !allparameters)
continue;
return &parm_table[(*i)++];
}