summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-21 17:01:58 +0100
committerMichael Adam <obnox@samba.org>2009-02-26 11:05:21 +0100
commit26f238466caa1d40edf74d4678c2e981ec9018bd (patch)
treea1007c40ee6568b7bc7c31a5950138fb1c6ec6e8 /source3/lib
parent8e4816f0078fd94a1b83798f52a63dc679eed47e (diff)
downloadsamba-26f238466caa1d40edf74d4678c2e981ec9018bd.tar.gz
samba-26f238466caa1d40edf74d4678c2e981ec9018bd.tar.bz2
samba-26f238466caa1d40edf74d4678c2e981ec9018bd.zip
Speed up "net conf list"
With 1000 shares in the registry, this changed the time of "net conf list" from 1.1 seconds to .6 seconds. Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbconf/smbconf_reg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c
index e36fa8a2a1..01de193b3c 100644
--- a/source3/lib/smbconf/smbconf_reg.c
+++ b/source3/lib/smbconf/smbconf_reg.c
@@ -896,6 +896,9 @@ static WERROR smbconf_reg_get_share(struct smbconf_ctx *ctx,
werr = smbconf_reg_open_service_key(tmp_ctx, ctx, servicename,
REG_KEY_READ, &key);
if (!W_ERROR_IS_OK(werr)) {
+ if (W_ERROR_EQUAL(werr, WERR_BADFILE)) {
+ werr = WERR_NO_SUCH_SERVICE;
+ }
goto done;
}