From 8c85c10f8a2589f3c93477d21cd3485248c0f66f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 8 Apr 2008 00:08:41 +0200 Subject: 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) --- source3/lib/smbconf/smbconf_txt_simple.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/lib/smbconf') 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; } -- cgit