werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/lib/smbconf/smbconf_...
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:11 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:17 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/smbconf/smbconf_reg.c

index 78f40824ae614fd82cefe001f7669003e91247f1..781f19436426bbfb17374de255c7748a4219deae 100644 (file)
@@ -104,7 +104,7 @@ static sbcErr smbconf_reg_open_service_key(TALLOC_CTX *mem_ctx,
        }
        werr = reg_openkey(mem_ctx, rpd(ctx)->base_key, servicename,
                           desired_access, key);
-       if (W_ERROR_EQUAL(werr, WERR_BADFILE)) {
+       if (W_ERROR_EQUAL(werr, WERR_FILE_NOT_FOUND)) {
                return SBC_ERR_NO_SUCH_SERVICE;
        }
        if (!W_ERROR_IS_OK(werr)) {