werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/services/svc_winreg_...
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/services/svc_winreg_glue.c

index 8a0d619416be9fe7ad2ce1f308f58b1fe33c6cd2..8e8fa21edc7f222e0233524b183050e21c8c5cc3 100644 (file)
@@ -127,7 +127,7 @@ struct security_descriptor *svcctl_get_secdesc(TALLOC_CTX *mem_ctx,
                          "%s\n", nt_errstr(status)));
                return NULL;
        }
-       if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+       if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
                goto fallback_to_default_sd;
        } else if (!W_ERROR_IS_OK(result)) {
                DEBUG(2, ("svcctl_get_secdesc: error getting value 'Security': "