From b23106745c500e0e440eacd1bcd3250979df9db6 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 23 Oct 2008 16:05:19 +0200 Subject: [s3]libsmbconf: return WERR_BADFILE when no path to text backend is provided. Michael --- source3/lib/smbconf/smbconf_txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/smbconf/smbconf_txt.c b/source3/lib/smbconf/smbconf_txt.c index 7661c0dceb..d932705e7d 100644 --- a/source3/lib/smbconf/smbconf_txt.c +++ b/source3/lib/smbconf/smbconf_txt.c @@ -221,7 +221,7 @@ static WERROR smbconf_txt_load_file(struct smbconf_ctx *ctx) static WERROR smbconf_txt_init(struct smbconf_ctx *ctx, const char *path) { if (path == NULL) { - path = get_dyn_CONFIGFILE(); + return WERR_BADFILE; } ctx->path = talloc_strdup(ctx, path); if (ctx->path == NULL) { -- cgit