[s3]libsmbconf: return WERR_BADFILE when no path to text backend is provided.
authorMichael Adam <obnox@samba.org>
Thu, 23 Oct 2008 14:05:19 +0000 (16:05 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 27 Oct 2008 12:02:39 +0000 (13:02 +0100)
Michael

source3/lib/smbconf/smbconf_txt.c

index 7661c0dceb718e56db3a8de02b27cbc0be45ea4a..d932705e7d104ed281a351d374a1bfb42d39290a 100644 (file)
@@ -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) {