diff options
author | Michael Adam <obnox@samba.org> | 2008-10-23 16:05:19 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-10-27 13:02:39 +0100 |
commit | b23106745c500e0e440eacd1bcd3250979df9db6 (patch) | |
tree | 4c646a36e4fb53ca182824414b5123b569e9faa6 /source3/lib/smbconf | |
parent | 64ab71d2d7e60c1511fd223bb05ef157ef5a2374 (diff) | |
download | samba-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/smbconf')
-rw-r--r-- | source3/lib/smbconf/smbconf_txt.c | 2 |
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) { |