diff options
author | Michael Adam <obnox@samba.org> | 2008-04-08 00:08:41 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-10 01:28:56 +0200 |
commit | 8c85c10f8a2589f3c93477d21cd3485248c0f66f (patch) | |
tree | 1c6737363ae72d854ba68e781976a88eb9b0313a | |
parent | 862608ca1fa0bcec100f23fff326a571df967235 (diff) | |
download | samba-8c85c10f8a2589f3c93477d21cd3485248c0f66f.tar.gz samba-8c85c10f8a2589f3c93477d21cd3485248c0f66f.tar.bz2 samba-8c85c10f8a2589f3c93477d21cd3485248c0f66f.zip |
libsmbconf: search from the back when getting parameter from text backend
so we make sure to always deliver the value last read.
Michael
(This used to be commit 2eb5a681e9e3ff302b5151f25d6856834eae7d54)
-rw-r--r-- | source3/lib/smbconf/smbconf_txt_simple.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/smbconf/smbconf_txt_simple.c b/source3/lib/smbconf/smbconf_txt_simple.c index 53768dec88..8c831f9f81 100644 --- a/source3/lib/smbconf/smbconf_txt_simple.c +++ b/source3/lib/smbconf/smbconf_txt_simple.c @@ -462,10 +462,10 @@ static WERROR smbconf_txt_get_parameter(struct smbconf_ctx *ctx, return WERR_NO_SUCH_SERVICE; } - found = smbconf_find_in_array(param, - pd(ctx)->cache->param_names[share_index], - pd(ctx)->cache->num_params[share_index], - ¶m_index); + found = smbconf_reverse_find_in_array(param, + pd(ctx)->cache->param_names[share_index], + pd(ctx)->cache->num_params[share_index], + ¶m_index); if (!found) { return WERR_INVALID_PARAM; } |