summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-10-23 16:05:19 +0200
committerMichael Adam <obnox@samba.org>2008-10-27 13:02:39 +0100
commitb23106745c500e0e440eacd1bcd3250979df9db6 (patch)
tree4c646a36e4fb53ca182824414b5123b569e9faa6 /source3/lib
parent64ab71d2d7e60c1511fd223bb05ef157ef5a2374 (diff)
downloadsamba-b23106745c500e0e440eacd1bcd3250979df9db6.tar.gz
samba-b23106745c500e0e440eacd1bcd3250979df9db6.tar.bz2
samba-b23106745c500e0e440eacd1bcd3250979df9db6.zip
[s3]libsmbconf: return WERR_BADFILE when no path to text backend is provided.
Michael
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbconf/smbconf_txt.c2
1 files changed, 1 insertions, 1 deletions
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) {